Search code examples
iphonefontsxcode4.2embedding

Using custom fonts in Xcode - Punctuation issue


When I make an NSString, for instance: @"Thanks, Lucy!" The comma would not come up but the exclamation point would.

Or if I use NSDateFormatter, something like December 12, 2012 would just come up with spaces: December 12 2012.

Is there a line/method in Xcode to embed characters when using a local custom font like I am (UIAppFonts)?

Thanks! Keith


Solution

  • Like WrightsCS said, your custom font does not include the character (comma) you need. You either need to find another font that works for you, or you need to edit the font you want to include the characters you need using a font editor like Fontographer. An experienced graphic designer could do that for you.

    Also don't forget that most font licenses forbid embedding fonts into software without a special license from the font publisher.