Latest 1.2.1
Homepage https://github.com/ninjaprox/Inkwell
License MIT
Platforms ios 8.0
Dependencies Alamofire
Frameworks Foundation, CoreText
Authors

CI Status
Version
Carthage compatible
License
Platform

Introduction

In brief, Inkwell is a font library to use custom fonts on the fly. Inkwell takes responsibilities for:

  • [x] Downloading fonts from Google Fonts or custom resources.
  • [x] Registering custom fonts to the system.
  • [x] Loading and using custom fonts dynamically and seamlessly.

Example

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

alt tag

Installation

CocoaPods

Install CocoaPods if need be.

$ gem install cocoapods

Add Inkwell in your Podfile.

use_frameworks!

pod 'Inkwell'

Run the following command.

$ pod install

Carthage

Install Carthage if need be.

$ brew update
$ brew install carthage

Add Inkwell in your Cartfile.

github "ninjaprox/Inkwell"

Run carthage to build the framework and drag the built Inkwell.framework into your Xcode project.

Usage

Firstly, set the Google API key in the app delegate.

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    Inkwell.shared.APIKey = "paste your key here"
}

Now you are ready to use Inkwell with only one API to remember.

let font = Font(family: "ABeeZee" variant: .regular)
let fontSize = 27
Inkwell.shared.font(for: font, size: fontSize) { uifont in
    // Do something with the `uifont`.
}

Note: Do not forget to import Inkwell in any file using Inkwell.

Documentation

For full API documentation, please check Inkwell’s documentation.

Dependency

License

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

Copyright (c) 2017 Vinh Nguyen @ninjaprox

Latest podspec

{
    "name": "Inkwell",
    "version": "1.2.1",
    "summary": "An inkwell to use custom fonts on the fly.",
    "description": "In fact, Inkwell takes responsibilities for:n- Downloading fonts from Google Fonts or custom resources.n- Registering custom fonts to the system.n- Loading and using custom fonts dynamically and seamlessly.nAll of these are wrapped in friendly, easy to use API.",
    "screenshots": "https://raw.githubusercontent.com/ninjaprox/Inkwell/master/Demo.gif",
    "homepage": "https://github.com/ninjaprox/Inkwell",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Vinh Nguyen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ninjaprox/Inkwell.git",
        "tag": "1.2.1"
    },
    "social_media_url": "https://twitter.com/ninjaprox",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Inkwell/Inkwell/**/*.swift",
    "frameworks": [
        "Foundation",
        "CoreText"
    ],
    "dependencies": {
        "Alamofire": [
            "~> 4.4.0"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This