Methods
getGlyph
- getGlyph(codePoint: number, characterSize: number, bold: boolean, outlineThickness?: number): Glyph
-
Parameters
-
codePoint: number
-
characterSize: number
-
bold: boolean
-
Optional outlineThickness: number
getKerning
- getKerning(first: number, second: number, characterSize: number): number
-
Parameters
-
first: number
-
second: number
-
characterSize: number
Returns number
getLineSpacing
- getLineSpacing(characterSize: number): number
-
Parameters
Returns number
getUnderlinePosition
- getUnderlinePosition(characterSize: number): number
-
Parameters
Returns number
getUnderlineThickness
- getUnderlineThickness(characterSize: number): number
-
Parameters
Returns number
loadFromFile
- loadFromFile(filename: string): Promise<void>
-
Parameters
Returns Promise<void>
loadFromFileSync
- loadFromFileSync(filename: string): boolean
-
Parameters
Returns boolean
loadFromMemory
- loadFromMemory(buff: Buffer): boolean
-
Parameters
Returns boolean