Methods
addFontFromFile
- addFontFromFile(filename: string, sizePixels: number): FontRef
-
Parameters
-
filename: string
-
sizePixels: number
addFontFromMemory
- addFontFromMemory(font: Buffer, sizePixels: number): FontRef
-
Parameters
-
font: Buffer
-
sizePixels: number
addFontFromMemoryCompressed
- addFontFromMemoryCompressed(compressedFont: Buffer, sizePixels: number): FontRef
-
Parameters
-
compressedFont: Buffer
-
sizePixels: number