mirror of
https://github.com/mapbox/node-fontnik.git
synced 2026-01-18 15:54:55 +00:00
908 B
908 B
fontnik
range(options: object, callback: function)
options is an object with options:
start: numberend: numberfontstack: ?string
Get a range of glyphs as a gzipped protocol buffer.
conf(options: object)
options is an object with options:
fonts: Array<string>
Configure node-fontnik.
getRange(start: number, end: number): Array<number>
Generate an array of the numbers from start to end. Numbers must be
in order and both less than 65533.
faces(): Array<string>
Return an array of supported font faces, as strings.
new fontnik.Glyphs()
Create a new Glyphs object.
glyphs.codepoints(face: string): Array<number>
Get an array of numbers corresponding to unicode points where this font face has coverage.