Android Question TTF graphics fonts don't shows on android 11+

eledu62

Member
Hello. I made a very simple app to display characters from a graphics ttf font. On phones with Android 7 and Android 8 they show up fine.
But in Android 11 and Android 12 characters from the system font are displayed.
To rule out errors in the ttf file, I used the webdings.ttf font file, from the windows' fonts folder, and got the same result: system font characters are displayed on android 11 and Android 12.
What could be the problem?
 

eledu62

Member
Please upload a small project with the font.
Hello Erel. Here attached is the .zip project.
I have found the problem:
Devices running Android 10+ show only unicode characters.
Devices running Android 8- show both unicode characters and graphic characters.
Using a font editor I generated a new font file adding the unicode characters and they display just fine.

Original file:
original.jpg



New file with unicode chars:
with_unicode_chars.jpg


The following image shows 4 devices: the characters on top are drawn using the original font, and the characters below are drawn using the font with unicode characters.
screens.jpg

Devices from left to right: Android 12, Android 10, Android 8.1 and Android 7.

Thanks in advance.
 

Attachments

  • pantalla.zip
    25.4 KB · Views: 12
Upvote 0

kimstudio

Active Member
Licensed User
Longtime User
I have found the problem:
Devices running Android 10+ show only unicode characters.
Devices running Android 8- show both unicode characters and graphic characters.
Good catch if in fact this is the reason!

Will this affect the FontAwesome and MaterialIcon fonts embedded in B4A? @Erel
 
Upvote 0
Top