HeliBoard icon indicating copy to clipboard operation
HeliBoard copied to clipboard

System font is different from keyboard font

Open altius4444 opened this issue 6 months ago • 6 comments

Describe the bug The system font on my phone is Inter, but HeliBoard shows a different font. Apps that I use seem to use the correct font though. I have tried changing the system font, setting a custom font for HeliBoard and removing it again, clearing data and reinstallation but none of them helped

To Reproduce Just run the keyboard, the difference in fonts is visible. The attached screenshot shows which letters appear different (notice the 3, 6 and 9). Additionally, long pressing keys shows the correct font, but the key themselves aren't on the right font

Expected behavior The correct font should be displayed

Screenshots ResizedImage_2025-07-03_20-17-06_0.png

App version Version 3.2

Device:

  • Model: Nothing Phone (3a)
  • OS: Android 15 (NothingOS 3.1)

altius4444 avatar Jul 03 '25 14:07 altius4444

The hints are using Typeface.DEFAULT_BOLD, while the letters are Typeface.DEFAULT (in holo theme I think they also use bold though). Can you confirm your font has different 3 with bold text?

Helium314 avatar Nov 21 '25 20:11 Helium314

3 3

Here, they look alike. It's pretty weird to be honest.

Screenshot_20251122-225514 (1).png

Screenshot_20251122-225645.png

So confusing

altius4444 avatar Nov 22 '25 17:11 altius4444

So there seems to be a difference between... system font and system font? I don't understand what's going on, but I never really looked into this.

Helium314 avatar Nov 22 '25 17:11 Helium314

I believe that the Inter font specifies alternate digits too (https://rsms.me/inter/ - scroll down to ss01) and sometimes one gets selected while sometimes the other does. I'm not really sure if this is fixable, if not feel free to close the issue

altius4444 avatar Nov 23 '25 03:11 altius4444

If you or someone else are willing to take the time to find out when which digit style is set it might be fixable. As far as I remember, HeliBoads only sets typeface (NORMAL, BOLD, DEFAULT, or MONOSPACE) and text size.

Helium314 avatar Nov 23 '25 10:11 Helium314

I would totally love to! However, I have no experience collaborating with others in GitHub nor in developing applications for android, so if you'd be able to give me a few pointers I'd love to try to find the issue and maybe I'll be able to learn how to fix it too

altius4444 avatar Nov 23 '25 12:11 altius4444