- Home /
Why are Unity 4.x Dynamic/Rich Fonts not rendered correctly on Android?
As seen in the attached image, Use of Dynamic Fonts with Rich Text markups like "Bold" seem to not function correctly on android. This example is using the default Arial font but the results are the same with other fonts. Anyone have any idea/fixes? I have considered using separate fonts and GUIStyles for regular and bold but this sort of defeats the purpose of dynamic fonts, doesn't it?
Thanks, Mike
Hmm. I'm guess by the silence that no one uses dynamic fonts on mobile or this is some weird problem that only I am having. If you can confirm that dynamic fonts are working fine for you on Android, please just let me know so I can blow up my computer.
I have the exactly the same problem. Don't know how to fix it, yet.
Oops, just read your comment today... I am having no issues with dynamic fonts on Android. In fact, I use them very intensively without having this kind of problem. Sorry for the delay.
Answer by Wolfram · Feb 06, 2015 at 04:42 PM
Had the same problem. I fixed this by not only using an arial.ttf asset instead of Unity's default, but also by explicitly importing the TTF files for the desires style as well - in your case arialbd.ttf for Bold.
Note you don't have to actually use or reference the arialbd.ttf asset in your scene, just using the regular arial.ttf and then selection the Bold style will do the trick.
Each .ttf file contains only ONE style, AFAIC. The reason why it's working under Windows (or Mac as well?) anyway is probably that the Bold version is usually also installed in the Windows fonts folder, so the actual system file is used for different styles. No idea why it's working on iOS - maybe the other styles are installed there per default as well?