Custom fonts: simulator vs. device, a cautionary tale

Thought I’d post this here just in case it can save someone some aggravation…

My app stopped working properly when deployed to device and I couldn’t figure it out… the console output from the device wasn’t reporting any errors (or at least anything I could recognize as errors).

It turned out that at some point I’d reorganized all my non-code assets into a subdirectory. Including my TTF file. The simulator was able to find the TTF there, so it ran perfectly… but the device wasn’t, so none of my text images were appearing.

Once I put the TTF back in the top directory, the problem was solved!
[import]uid: 117162 topic_id: 31382 reply_id: 331382[/import]

as far as I know, the simulator can access fonts that are installed on your system, i.e. it doesn’t matter if it’s in the project folder or not. to show the font on a device, tho, you have to put it in the project’s root folder. [import]uid: 70635 topic_id: 31382 reply_id: 125453[/import]

as far as I know, the simulator can access fonts that are installed on your system, i.e. it doesn’t matter if it’s in the project folder or not. to show the font on a device, tho, you have to put it in the project’s root folder. [import]uid: 70635 topic_id: 31382 reply_id: 125453[/import]