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)