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

Defined in

FontData.ts:11


fontFamilyName

fontFamilyName: string

Defined in

FontData.ts:10


fontName

fontName: string

Defined in

FontData.ts:9


fontUrl

fontUrl: string

Defined in

FontData.ts:8


isDefault

isDefault: boolean

Defined in

FontData.ts:12