Skip to content

Instantly share code, notes, and snippets.

@thoretton-edwin
Created March 9, 2014 11:13
Show Gist options
  • Save thoretton-edwin/9446220 to your computer and use it in GitHub Desktop.
Save thoretton-edwin/9446220 to your computer and use it in GitHub Desktop.
iOS add custom font
In plist file :
1) add "Fonts provided by application" item in property list
2) drag the .ttf or .otf file in supporting file folder
Warning ! check case "add target"
3) add string item in Fonts provided by application array : example "myFont.ttf"
4) in the module :
[titre setFont: [UIFont fontWithName:@"myFont" size:32]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment