termux-app icon indicating copy to clipboard operation
termux-app copied to clipboard

Font broken on "i" and "l"

Open ikurek opened this issue 8 years ago • 21 comments

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: 2016-06-21 01 25 08

ikurek avatar Jun 21 '16 01:06 ikurek

Which font is that? It seems pretty broken, look at the "t", "r", "(", ")", the stroke width is not consistent at all.

PwnicornDev avatar Jun 22 '16 13:06 PwnicornDev

I'm using default termux font, but it happens with all of the fonts included in styling package.

ikurek avatar Jun 23 '16 01:06 ikurek

What's your specs? Android version, phone make and model, etc.

mklein994 avatar Jun 23 '16 02:06 mklein994

I'm running Android 6.0 on Huawei P8 (GRA-L09). Font I'm using in my system is the default one from Huawei.

ikurek avatar Jun 23 '16 09:06 ikurek

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)?

fornwall avatar Jun 23 '16 21:06 fornwall

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 avatar Jul 14 '16 10:07 ikurek

@ikurek Could you try changing font with Termux:Styling?

fornwall avatar Aug 11 '16 11:08 fornwall

@fornwall Nothing changed, here are screenshots with 4 different fonts: http://imgur.com/a/3Rj1Z

ikurek avatar Aug 11 '16 22:08 ikurek

Same problem here with a Huawei P20 Pro. So it seems to be an issue on their side... But switching fonts with Termux:Styling does help for me :+1:

0x4a avatar Oct 15 '19 20:10 0x4a

I have the same problem with my Honor 6x, but switching fonts with Termux:Styling does not help.

mohnen avatar Dec 03 '19 08:12 mohnen

Same problem Android 9 (realme 5i) Too much glitchy Screenshot_2020-06-30-12-34-07-47_84d3000e3f4017145260f7618db1d683

RaSan147 avatar Jun 30 '20 06:06 RaSan147

Same problem on Oneplus 8T (Android 11): Screenshot_20210206-112848

But for me any custom fonts fix the issue.

MatthewScholefield avatar Feb 06 '21 17:02 MatthewScholefield

same problem on OnePlus 9 pro, Android 12 Screenshot_2022-04-15-12-53-04-07_84d3000e3f4017145260f7618db1d683.jpg

scottwn avatar Apr 15 '22 16:04 scottwn

@scottwn Realized what happened, and why This issue happens when you use custom font, so as a fallback (because terminals use monospace fonts, and theme fonts aren't monospace), termux uses this buggy font. Just use default font for Android (yes android theme font) and its all good to go

Requesting to close this issue and use a better fallback font.

RaSan147 avatar Apr 15 '22 17:04 RaSan147

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".

danilo-alm avatar Apr 27 '22 09:04 danilo-alm

Is it still reproducible?

twaik avatar Dec 23 '23 12:12 twaik

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.

ssb22 avatar Jan 18 '24 14:01 ssb22

It seems like font renderer does not recognise font as monospace and stretches some letters to the size of cell. Reference.

303907936-ff45d0d1-3c68-4a3c-b6bb-5fb7e7932997

twaik avatar Feb 12 '24 20:02 twaik

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).

sylirre avatar Feb 12 '24 22:02 sylirre