Skip to main content

Interface: FontData

FontData holds metadata about the font (names, url) and the raw bytes of the font TTF in an ArrayBuffer. This ArrayBuffer font data cannot be used by canvaskit directly. These data are later used to create a canvaskit TypeFace in FontManager.loadFonts().

Properties

fontArrayBuffer

fontArrayBuffer: ArrayBuffer

Source

FontData.ts:11


fontFamilyName

fontFamilyName: string

Source

FontData.ts:10


fontName

fontName: string

Source

FontData.ts:9


fontUrl

fontUrl: string

Source

FontData.ts:8


isDefault

isDefault: boolean

Source

FontData.ts:12