Methods
Static addFont
- addFont(font: any, fontName?: string, binFont?: any, filePath?: string, fontStyle?: FontStyle, store?: boolean): void
-
Parameters
-
font: any
-
Default value fontName: string = null
-
Default value binFont: any = null
-
Default value filePath: string = null
-
Default value fontStyle: FontStyle = null
-
Default value store: boolean = true
Returns void
Static addFontBytes
- addFontBytes(data: any, fontName?: string, fontStyle?: FontStyle, store?: boolean): void
-
Parameters
-
data: any
-
Default value fontName: string = null
-
Default value fontStyle: FontStyle = null
-
Default value store: boolean = true
Returns void
Static addFontFile
- addFontFile(filePath: string, fontName?: string, fontStyle?: FontStyle, store?: boolean): void
-
Parameters
-
filePath: string
-
Default value fontName: string = null
-
Default value fontStyle: FontStyle = null
-
Default value store: boolean = true
Returns void
Static addFontFileAsync
- addFontFileAsync(callback: function, filePath: string, fontName?: string, fontStyle?: FontStyle, store?: boolean): void
-
Parameters
-
callback: function
-
filePath: string
-
Default value fontName: string = null
-
Default value fontStyle: FontStyle = null
-
Default value store: boolean = true
Returns void
Static addOpentypeFont
- addOpentypeFont(font: any, fontName?: string, binFont?: any, filePath?: string, fontStyle?: FontStyle, store?: boolean): void
-
Parameters
-
font: any
-
Default value fontName: string = null
-
Default value binFont: any = null
-
Default value filePath: string = null
-
Default value fontStyle: FontStyle = null
-
Default value store: boolean = true
Returns void
Static addOpentypeFontFile
- addOpentypeFontFile(filePath: string, fontName?: string, fontStyle?: FontStyle, store?: boolean): void
-
Parameters
-
filePath: string
-
Default value fontName: string = null
-
Default value fontStyle: FontStyle = null
-
Default value store: boolean = true
Returns void
Static addOpentypeFontFileAsync
- addOpentypeFontFileAsync(callback: function, filePath: string, fontName?: string, fontStyle?: FontStyle, store?: boolean): void
-
Parameters
-
callback: function
-
filePath: string
-
Default value fontName: string = null
-
Default value fontStyle: FontStyle = null
-
Default value store: boolean = true
Returns void
Static getBinFont
- getBinFont(fontName: string, fontStyle?: FontStyle): any
-
Parameters
-
fontName: string
-
Default value fontStyle: FontStyle = undefined
Returns any
Static isCustomFont
- isCustomFont(fontName: string): boolean
-
Parameters
Returns boolean
Static setFontsFolder
- setFontsFolder(folderPatch: string): void
Static setOpentypeFontsFolder
- setOpentypeFontsFolder(folderPatch: string): void
Use addFont