Latest 1.0.0
Homepage https://github.com/rohitRohi123/FONTSMANAGER
License MIT
Platforms ios 10.0, requires ARC
Authors

FONTSMANAGER

Feature

  • Download Font asynchronously.
  • Cached font for next time uses.
  • Completion Handler for asynchronous programing

Installation

pod ‘FONTS’

Usage

  1. If you have ‘Fonts base url’ and Fonts list.

    • Import FONTS

    FontManager.shared.setFontBaseurl(urlString: fontBaseUrl)

    FontManager.shared.setFonts(list: fontList)

    FontManager.shared.registerAllFont()

    FontManager.shared.downloadAllFont()

    do {
    try FontManager.shared.font(name: fontList[indexCount], size: 20) { (font) in
    yourLabel?.font = font

            }
    
    }catch {
        debugPrint("Error = (error.localizedDescription)")
    
    }
    1. If you have Fonts Url list.

    FontManager.shared.setfontsRemoteUrls(fontRemoteUrls: remoteUrls)

    FontManager.shared.setisuseRemoteUrls(status: true)

    FontManager.shared.registerAllFont()

    FontManager.shared.downloadAllFont()

    do {
    try FontManager.shared.font(name: fontList[indexCount], size: 20) { (font) in
    yourLabel?.font = font

            }
    
    }catch {
        debugPrint("Error = (error.localizedDescription)")
    
    }

Latest podspec

{
    "name": "FONTS",
    "version": "1.0.0",
    "summary": "Provide Any Font from remote or system",
    "description": "Use this library to get custom fonts from remote or system with completion handler",
    "homepage": "https://github.com/rohitRohi123/FONTSMANAGER",
    "license": "MIT",
    "authors": {
        "Rohit": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/rohitRohi123/FONTSMANAGER.git",
        "tag": "1.0.0"
    },
    "source_files": "FONTS",
    "requires_arc": true,
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This