GithubHelp home page GithubHelp logo

ninjaprox / inkwell Goto Github PK

View Code? Open in Web Editor NEW
154.0 7.0 14.0 1.27 MB

An inkwell to use custom fonts on the fly.

License: MIT License

Swift 95.36% Ruby 0.39% Objective-C 0.48% Shell 3.77%
font google-fonts inkwell fonts uifont

inkwell's Introduction

Inkwell

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:

  • Downloading fonts from Google Fonts or custom resources.
  • Registering custom fonts to the system.
  • 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

inkwell's People

Contributors

ninjaprox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

inkwell's Issues

Alamofire New Version issue.

Can you please update Alamofire to the new version? as this it is using Alamofire 4.4.0 but the latest version of Alamofire is 4.7

I am facing the following issue(See attachment).

screen shot 2018-03-07 at 2 02 36 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.