Creates an empty font registry.
Removes all registered fonts from the document and clears the registry.
Nothing.
Loads all @font-face rules found in a CSS file.
Font family name to register for the discovered faces.
URL of the stylesheet containing @font-face declarations.
OptionalcustomData: Map<string, unknown>Optional metadata stored alongside each registered font.
A promise that resolves after all matching font faces have been loaded.
Loads a font directly from a font file URL.
Font family name to register.
URL of the font file.
Optionaldescriptors: FontFaceDescriptorsOptional FontFace descriptors such as weight or style.
OptionalcustomData: Map<string, unknown>Optional metadata stored alongside the registered font.
A promise that resolves after the font has been loaded and added to document.fonts.
Removes a registered font family from the document and registry.
Font family name to remove.
Nothing.
Preloads registered fonts for PIXI HTMLText rendering.
A promise that resolves after each registered font has been requested through PIXI.HTMLText.
Serializes the registered fonts and their metadata.
The serialized font registry payload.
StaticdeserializeRestores a font registry from serialized data.
Serialized font registry payload to validate and load.
A promise that resolves to the deserialized font registry.
Manages custom fonts loaded into the document and tracks the metadata needed to serialize them.