Adding multiple fonts to UIAppFonts overrides each other

☆樱花仙子☆ 提交于 2019-12-05 07:08:44

Don't know if it was ever fixed, but I worked around this issue by actually modifying the font family names inside the .ttf files, using vim editor. Because you have different font-types (Bold and Medium) but actually the same fontfamily (MyFont) - the system mixes them up. So what I did in the first file - I actually modified the family to be MyFontA, and in the second file MyFontB (of course I had different names - these are just to match the example above). This worked perfect.

I had a similar issue with multiple fonts of the same font family. I found that if I viewed the info.plist file as source code, the xml not formatted properly which cause only some of the fonts to register.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!