Interface: FontBuffer
Font file data supplied directly by the caller.
Use this when system font scanning is unavailable or undesirable, such as in
browsers, Edge Runtime, or serverless environments. name can be used to
register TTF/OTF buffers under a specific family name; family names from the
font names table are also registered when available.
Properties
data
data: ArrayBuffer | Uint8Array<ArrayBufferLike>;Raw TTF, OTF, or TTC font file bytes.
name?
optional name?: string;Optional font family name to register for this buffer.