Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1083] Custom Fonts no longer rendering in iOS 7.1 (worked in 7.0.3)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNot Our Bug
Resolution Date2014-03-24T02:28:37.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labels7.1, fonts
ReporterMatthew Delmarter
AssigneeRitu Agrawal
Created2014-03-13T23:54:11.000+0000
Updated2016-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

FileDateSize
battambang.ttf2014-03-13T23:54:11.000+000089644
Custom Fonts iOS 7.0.3.png2014-03-13T23:54:11.000+000043212
Custom Fonts iOS 7.1.png2014-03-13T23:54:11.000+000017621

Comments

  1. Ritu Agrawal 2014-03-14

    Please provide a simple runnable test case to reproduce this issue.
  2. Conny Brunnkvist 2014-03-17

    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.
  3. Ritu Agrawal 2014-03-24

    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.

JSON Source