Android Question font awesome problem

yaniv hanya

Active Member
Licensed User
Hi
i use font awesome lables in my activity
but when i made the release the icons changed
why?

debug mode
upload_2019-9-17_14-53-59.png


release mode
upload_2019-9-17_14-55-2.png
 

emexes

Expert
Licensed User
I don't know, but it looks to me like the character (icon) codes are ok, but a different font is being used. I thought that the font was included with the APK if it is used in a source file, so perhaps the packager doesn't know that you're using it. Are you constructing the icon labels in code, perhaps using Chr() ? Maybe add a label that uses the font to one of your layouts, but position it off screen or disable it; that might be enough to get the font included in the APK.

As soon as a better answer is posted, go with that, I won't be offended - just throwing ideas into the mix until the rest of the world wakes up ;-)
 
Last edited:
Upvote 0

yaniv hanya

Active Member
Licensed User
I created a small project and there it compiled good .
And after a few times in the big project, it is also started to compile good.
So now everything is fine.
But I wonder what happened the first few times.
 
Upvote 0

yaniv hanya

Active Member
Licensed User
The problem again appears in both debug mode and release.
I noticed when the program starts to run it's fine but after a few times I switch between screens it happens and the icons change.
Any idea why this is happening and what to do?
 
Upvote 0

William Lancee

Well-Known Member
Licensed User
Longtime User
Are you switching back and forth to the IDE using alt TAB in Windows?
If so, I found that sometimes my default character set switched away from my normal due to a localization toggle caused by "Sticky Keys", a keyboard shortcut.
I turned Sticky Keys off to fix the problem (press shift 5 times to get dialogue).
 
Upvote 0
Top