I'm developing an application and I have to use a custom Font Family Name : Montserrat in my app.So can anyone help me how to do this?
Font Family Name : Montserrat
I'm developing an application and I have to use a custom Font Family Name : Montserrat in my app.So can anyone help me how to do this?
Font Family Name : Montserrat
Use the IBCustomFonts if you want the font will apply on Storyboard
Category the UIFont class to apply this font every that you want to change.
Drag and drop the custom font family with style into your project.
In your app -->info.plist,You should have add like this
After that we can easily check the family in the Interface Builder->Show the Attribute Inspector.
Programmatically
UIFont* font = [UIFont fontWithName:@"Montserrat" size:20];
You can also check whether the font family file is added or not by put this code into your project.
for (NSString *fontFamilyName in [UIFont familyNames])
{
for(NSString *fontName in [UIFont fontNamesForFamilyName:fontFamilyName])
{
NSLog(@"Family: %@ Font: %@", fontFamilyName, fontName);
}
}