The .ttf
file name may or may not be the same as the actual font name. This is what I do to find the real name of the font
I want to use
for (NSString *font in [UIFont familyNames]) {
NSLog(@"%@", [UIFont fontNamesForFamilyName:font]);
}
This will print out all the fonts that are supported by your system in a dictionary
fashion, the Font-family name being the key. Find the key of your desired font and you will see all the sub-fonts in that key. Use that name in the command
[totalRecordedText setFont:[UIFont fontWithName:<actual_font_name> size:19]];
and you should be good. !!
~ Happy Coding