node-fontnik/API.md
Lauren Budorick d87eb89806 Docs
2015-03-19 18:28:38 -07:00

480 B

fontnik

range(fontpath: string, start: number, end: number, callback: function)

Get a range of glyphs as a protocol buffer. fontpath is the path to a font file on disk.

load(fontpath: string, callback: function)

Read a font's metadata. Returns an object like

"family_name": "Open Sans",
"style_name": "Regular",
"points": [32,33,34,35]

where points is an array of numbers corresponding to unicode points where this font face has coverage.