First add the font to your build target, then add it to the plist in the fonts list.
Then you can use this code to dump all font family names:
- (void)dumpFonts {
for(NSString *fontName in [UIFont familyNames]) {
NSLog(@"fontName => %@",fontName);
for(NSString *familyMemberName in [UIFont fontNamesForFamilyName:fontName]) {
NSLog(@"- familyMemberName => %@",familyMemberName);
}
}
}
Then you can use this code to dump all font family names:
- (void)dumpFonts {
for(NSString *fontName in [UIFont familyNames]) {
NSLog(@"fontName => %@",fontName);
for(NSString *familyMemberName in [UIFont fontNamesForFamilyName:fontName]) {
NSLog(@"- familyMemberName => %@",familyMemberName);
}
}
}
Comments
Post a Comment