Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Get the list of All Available Font in ios

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 422
    Comment on it

    To get the list of all the font that is available in xCode you can use this code.

    for (NSString *name in fontnamesArray) {
            NSLog(@"Font Family:  %@",name);
            NSArray *fontFaces = [UIFont fontNamesForFamilyName:name];
            for (NSString *fname in fontFaces) {
                NSLog(@"              %@",fname);
            }

    This will print all the fonts that is available in xcode .

    if a font has number of fonts associated with it then

    for (NSString *fname in fontFaces) {
                NSLog(@"              %@",fname);
            }

    this code will fetch the all the fonts that is associated with this.

     

 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: