mirror of
https://github.com/mapbox/node-fontnik.git
synced 2026-01-18 15:54:55 +00:00
950 B
950 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. start must be
less than end and both numbers must be in the inclusive range 0 to 65535.
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.