API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceFontAssetOptions

@codexo/exojs / assets / stable

Options accepted by an asset of the built-in `font` type.

3
props
0
methods
0
events
Import
import { FontAssetOptions } from '@codexo/exojs'

Options accepted by an asset of the built-in `font` type.

Properties3
addToDocument?: boolean
Whether the loaded face is added to document.fonts, making it available to CSS and Canvas immediately. Defaults to true; a face added this way is removed again when the asset is released, and when the loader is destroyed.
descriptors?: FontFaceDescriptors
CSS font descriptors (style, weight, stretch, ...).
family: string
CSS font-family name the FontFace is registered under. Required.
Source