I want to assign different string to the label by storyboard or programmatically, but both way it's showing question mark only. Please help me.
-
1need to add font in your project – Nirav Kotecha Oct 11 '17 at 07:32
-
1font with these characters – Piotr Wasilewicz Oct 11 '17 at 07:40
-
Please share the characters or string that you want to add – Kashif Mujeeb Oct 11 '17 at 11:16
-
Thank you so much for answer, it's working now, it's actually amharic language. – Kratos Oct 12 '17 at 05:32
-
Possible duplicate of [Can I embed a custom font in an iPhone application?](https://stackoverflow.com/questions/360751/can-i-embed-a-custom-font-in-an-iphone-application) – Hexfire Oct 16 '17 at 05:34
2 Answers
So basically you need to:
Ensure that there's a font in your system that supports these special symbols. You need to manually find the font you want to use with your app.
Find Font property in Interface Builder for that label (it's where you see "System 17.0" on your screenshot), select that font and enter text you need.
If the font is not from the list of standard fonts, in order to ship your app with that font for it to be displayed on other devices, be sure to properly embed your custom font into the app (super important step): Can I embed a custom font in an iPhone application?. In short:
- Copy your font files into resources
- Add a key to your Info.plist file called
UIAppFonts
("Fonts provided by application"). - You can now use it programmatically too: [UIFont fontWithName:@"CustomFontName" size:12] // swift: UIFont(name:"CustomFontName" size:12).

- 5,945
- 8
- 32
- 42
First add the font to the xcode resource folder and then do not forget to add it to project .plist file under "Fonts provided by applications". Please also try removing any spacing in the font name and renaming it if present.