Font

Create a set of Shapes representing a font loaded in JSON format.

Constructor

Font(data : Object)

data — JSON typeface data representing the font.

This constructor creates a new Font, which is an array of Shapes.

Properties

.data : Object

The JSON typeface data passed in the constructor.

Methods

.generateShapes(text : String, size : Float, alignX : String, alignY : String, lineHeight : Float, scaledEmSize : Boolean) → Array

Creates an array of Shapes representing the text in the font.

Source

For more info on how to obtain the source code of this module see this page.