Latest 0.1.3
Homepage https://github.com/fadizant/FAFont
License MIT
Platforms ios 8.0
Authors

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

//add it in AppDelegate initialize
+ (void)initialize {
    if (self == AppDelegate.self) {
        // Print all font names
        [UIFont printFonts];

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

Swift4

//add it in AppDelegate initialize
override init() {
    // 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, [email protected]

License

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

Latest podspec

{
    "name": "FAFont",
    "version": "0.1.3",
    "summary": "add rest of system fonts (UltraLight,Thin,Light,Medium,Demi and Heavy).",
    "homepage": "https://github.com/fadizant/FAFont",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "fadizant": "[email protected]"
    },
    "source": {
        "git": "https://github.com/fadizant/FAFont.git",
        "tag": "0.1.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "FAFont/Classes/**/*"
}

Pin It on Pinterest

Share This