Skip to content

vyaz-monorepo / renderers/src / RegisterFontOptions

Interface: RegisterFontOptions ​

Defined in: renderers/src/register-font.ts:13

Properties ​

engineOnly? ​

optional engineOnly?: boolean

Defined in: renderers/src/register-font.ts:20

Register with the layout engine only; skip document.fonts.


style? ​

optional style?: "normal" | "italic"

Defined in: renderers/src/register-font.ts:16


variation? ​

optional variation?: Record<string, number>

Defined in: renderers/src/register-font.ts:18

Variable-font axis pin, e.g. { wght: 700 }.


weight? ​

optional weight?: string | number

Defined in: renderers/src/register-font.ts:15

'400' / 'bold' / 700 — defaults to 'normal'.

Released under the MIT License.