Question

I have been adding custom fonts to my project and know the usual checklist. But recently I tried to add the "Arial Unicode MS" font with filename ARIALUNI.TTF, but when I add the filename to my infoplist under "fonts provided by application" it crashes with a CFDictionaryRemoveValue.

I tried changing the .TTF to .ttf, checked the targets and build phases and everything is in order. On running the app, it does not even reach the appdelegate methods and crashes. For any other font that I try to add, it works perfectly fine.

Font Background: The ArialUni font is a paid font but have I have extracted it from adobe PS, even downloaded the font to be sure but to no avail. When I change the xcode font by changing it from the xcode preferences, it works fine. The font file is pretty huge at 23mb.

Can anyone point me in the right direction?

EDIT The debugger doesn't spew anything, the crash goes off if i delete the key from the "fonts provided by application" in the plist.

Stack trace

EDIT 2 Found this on SO. So the Arial Unicode MS belongs to the existing Arial font family. Does it mean i cant add new fonts to existing families?

Full stack

Was it helpful?

Solution

I raised a support ticket with Apple, they have confirmed that this font is not supported by iOS. Certain characters are not yet rendered on the iPhone so it crashes. It may be supported in the future but for now we cannot use this font.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top