Skip to main content

Posts

Showing posts from 2014

How to get list of all founts available in iOS SDK

To get list of all founts available in iOS SDK, use the following code,

// List all fonts on iPhoneNSArray *familyNames = [[NSArrayalloc] initWithArray:[UIFontfamilyNames]]; NSArray *fontNames; NSInteger indFamily, indFont; for (indFamily=0; indFamily<[familyNames count]; ++indFamily)     { NSLog(@"Family name: %@", [familyNames objectAtIndex:indFamily]);         fontNames = [[NSArrayalloc] initWithArray:                      [UIFontfontNamesForFamilyName:                       [familyNames objectAtIndex:indFamily]]]; for (indFont=0; indFont<[fontNames count]; ++indFont)         { NSLog(@"    Font name: %@", [fontNames objectAtIndex:indFont]);         }         [fontNames release];     } [familyNames release];
I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too. 

Sta…