I want to find out the PostScript Name of a .ttf file which I have copied to Documents Directory ... So that I can set the font to a label programmatically without changing the .plist file.
I know this code :
for (NSString *fontFamilyName in [UIFont familyNames]) {
for (NSString *fontName in [UIFont fontNamesForFamilyName:fontFamilyName]) {
NSLog(@"Family: %@ Font: %@", fontFamilyName, fontName);
}
}
But I want to find PostScript name for only one file example : segoe.ttf
Obviously there will be different font files which will be copied to Documents Directory and I would like to get the PostScript Name for every single file only and not like the one from the code mentioned above. Thank You ...