Search code examples
iosfontsios9

How do i add in a custom font into my iOS app?


Before Xcode updated to v7, there used to be a font which i used for my app called Heiti SC. After the update the font just disappeared. Now I have to figure out where i can download this font and how i can put it into my app. Could somebody point me in the right direction?


Solution

  • From here you can download the font http://www.free-fonts.com/heiti-tc-light.. After downloading add the folder(.ttf format) to supporting files in the project. Then Edit info.Plist like this

    Fonts provided by Application take as array

    Item 0 as Heiti SC.ttf

    now you can set label.font = [UIFont fontWithName:@"Heiti SC" size:15];