[AC-1083] Custom Fonts no longer rendering in iOS 7.1 (worked in 7.0.3)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2014-03-24T02:28:37.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | 7.1, fonts |
Reporter | Matthew Delmarter |
Assignee | Ritu Agrawal |
Created | 2014-03-13T23:54:11.000+0000 |
Updated | 2016-03-08T07:37:26.000+0000 |
Description
I have 2 custom fonts specified in my tiapp.xml:
<key>UIAppFonts</key>
<array>
<string>/fonts/abyssinicasil.ttf</string>
<string>/fonts/battambang.ttf</string>
</array>
When I build my app for the iOS 7.0.3 Simulator the custom fonts load correctly. When I build the app for the iOS 7.1 Simulator the fonts just show the text as square boxes with ? in them.
I will attach screenshots.
I will also attach the custom font used for Cambodian text (as shown in the screenshots).
Attachments
File | Date | Size |
---|---|---|
battambang.ttf | 2014-03-13T23:54:11.000+0000 | 89644 |
Custom Fonts iOS 7.0.3.png | 2014-03-13T23:54:11.000+0000 | 43212 |
Custom Fonts iOS 7.1.png | 2014-03-13T23:54:11.000+0000 | 17621 |
Please provide a simple runnable test case to reproduce this issue.
This is quite likely not a bug in Titanium, instead what you're observing is the effect of a broader bug introduced in iOS 7.1 related to custom fonts for specific encodings. :( Even if you install a font system-wide (I.e. through a .mobileconfig profile) content that formerly rendered perfectly now seems to have reverted to "[?]". It seems to work *sometimes* the first time I launch an app but on subsequent launches fonts are broken. I have yet to find any bug report at Apple reflecting this issue.
This is most likely an Apple bug. We will reopen this ticket if we have a test case that indicates it to be a Titanium issue.