Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to use new fonts in iPhone SDK

    • 0
    • 0
    • 2
    • 0
    • 0
    • 0
    • 0
    • 0
    • 595
    Comment on it

    Following are the steps to add new fonts which not available in iOS sdk.

    1) Download the font file and add that file in resource folder 2) go to App- info.plist and add key "Fonts provided by application" and in value add the name in that font. 3) in code write the name of font file without its extension. If the name of font file is "test.otf", then in code it will be

    label.font = [UIFont fontWithName:@"test" size:20];
    

    Thats all.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: