API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
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?: booleanWhether 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?: FontFaceDescriptorsCSS font descriptors (style, weight, stretch, ...).
family: stringCSS font-family name the FontFace is registered under. Required.
Source