Inkwell – Swift Library For Custom Fonts Including Google Fonts With Automatic Downloading

Inkwell is an open source Swift based library submitted by Vinh Nguyen allowing for the usage of custom fonts on the fly.

Some of the features of Inkwell include:

Downloading of Google fonts
Loading custom font resources
Font registration
A straightforward API for using the font

This code snippet shows how to use a font with Inkwell:

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

Inkwell

You can find Inkwell on Github here.

A nice Swift library for easily working with custom fonts.

Original article: Inkwell – Swift Library For Custom Fonts Including Google Fonts With Automatic Downloading

©2017 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *