Android Question Changing the system font shows Material Icons label with Chinese-like chars

Alessandro71

Well-Known Member
Licensed User
Longtime User
I need to create a label by code, by cloning an existing label, which uses Material Icons font.
Here is how it looks: the grey icon is the original label, while the red one is the clone
1726865196306.png


if I set the system font to anything else than the default (SamsungOne in this example)
1726865257317.png

the cloned icon font changes to a strange font
1726865295379.png


proof-of-concept project is attached.
 

Attachments

  • TestFont.zip
    9.8 KB · Views: 44

Alessandro71

Well-Known Member
Licensed User
Longtime User
I can reproduce the problem.
What is not obvious in this thread is that the OP is talking about using the system tool on the device to change the system font.
When I do what he does the problem appears.

It looks like the B4XFont of the label has info about using the icon file data instead of the TypeFace file data.
These are not the same. Even copying the .font form the original label does not change the new label's font icon info.
What you see is the unicode of the system (not default in this case) TypeFont.
Precisely.
It seems to affect Android only, since iOS is working properly
 
Upvote 0
Top