Sitelet https://github.com/FARecommendedControls/FAFont
Skip to content
FARecommendedControlsPublic
forked from fadizant/FAFont

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

FAFont

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

How to use

Add your custom font to your project : https://developer.apple.com/documentation/uikit/text_display_and_fonts/adding_a_custom_font_to_your_app

Objc

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

// Print all font names
[UIFont printFonts];

// set fonts by font name
[UIFont setRegularFontName:@"JFFlat-Regular"];
[UIFont setBoldFontName:@"JFFlat-Medium"];
[UIFont setItalicFontName:@"JFFlat-Regular"];

return YES;
}

Swift4

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

// Print all font names
UIFont.printFonts()

// set fonts by font name
UIFont.setBoldFontName("OpenSans-Bold")
UIFont.setRegularFontName("OpenSans")
UIFont.setItalicFontName("OpenSans-Italic")

return true
}

Installation

FAFont is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "FAFont"

Author

fadizant, fadizant@hotmail.com

License

FAFont is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages