-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font broken on "i" and "l" #107
Comments
Which font is that? It seems pretty broken, look at the "t", "r", "(", ")", the stroke width is not consistent at all. |
I'm using default termux font, but it happens with all of the fonts included in styling package. |
What's your specs? Android version, phone make and model, etc. |
I'm running Android 6.0 on Huawei P8 (GRA-L09). Font I'm using in my system is the default one from Huawei. |
Interesting that this happens with other fonts as well. Could it be a problem with the Huawei P8 and monospace fonts? Anyone else have the same problem (with the P8 or another device)? |
I'm still trying to find a solution... It's driving me crazy :-D I changed font systemwide to Helvetica, and in termux it's still broken. Any ideas? |
@ikurek Could you try changing font with Termux:Styling? |
@fornwall Nothing changed, here are screenshots with 4 different fonts: |
Same problem here with a Huawei P20 Pro. So it seems to be an issue on their side... |
I have the same problem with my Honor 6x, but switching fonts with Termux:Styling does not help. |
@scottwn Realized what happened, and why Requesting to close this issue and use a better fallback font. |
Hi! I was having the same problem after upgrading my Galaxy Note 10 Lite to One UI 4 (Android 12). It got fixed when I changed my fonts through the "termux-style" script. Here is a link to it: https://github.com/adi1090x/termux-style Just follow the instructions on how to install it, execute it and select "f" for "fonts". All of them worked properly for me, but at the moment I'm using the font number 9, "hack". |
Is it still reproducible? |
Same issue for me on a Samsung Galaxy S21 after I accepted an update to OneUI6 / Android 14. (The issue was not present before accepting this system update.) @danilo-alm's termux-style font 9 "hack" workaround fixed it in my case. |
It seems like font renderer does not recognise font as monospace and stretches some letters to the size of cell. |
It depends on fonts packaged as part of Android OS. Termux explicitly specifies monospace typeface and the issue happens only for certain devices with specific OS versions. Can be fixed if Termux would package own font in apk. The same font further can be used to fix issue where graphical characters are not displayed correctly in extra keys row (tested). |
This didn't happen to me when I had a Moto Edge 20 with Android 12 but is happening now with my Moto Edge 30 Ultra with Android 14 (in both cases installed with F-Droid). I tried changing the device's font but the same happened for all of them. Surprisingly, the one that looked better was the Slab font family (serif!). Fixed with the |
As noted above the default font depends on what is shipped as the systems default monospace font. (Note to the maintainers, we might want to consider locking this issue since it has been "necrobumped" several times now) |
This worked for me using font 9/hack. Thanks! |
Hi,
I have a problem with font, "i" and "l" characters to be exact. They seem to be different than other characters. I tried changing fonts but it didn't help. It's really annoying. How do I fix it?
Screen:

The text was updated successfully, but these errors were encountered: