CSSFontLoading
Types
fontDisplay
type fontDisplay = | @as("auto") Auto | @as("block") Block | @as("fallback") Fallback | @as("optional") Optional | @as("swap") SwapfontFace
See FontFace on MDN TODO: mark as private once mutating fields of private records is allowed
type fontFace = { mutable family: string, mutable style: string, mutable weight: string, mutable stretch: string, mutable unicodeRange: string, mutable featureSettings: string, mutable display: fontDisplay, mutable ascentOverride: string, mutable descentOverride: string, mutable lineGapOverride: string, status: fontFaceLoadStatus, loaded: promise<fontFace>,}Record fields
fontFaceDescriptors
type fontFaceDescriptors = { mutable style?: string, mutable weight?: string, mutable stretch?: string, mutable unicodeRange?: string, mutable featureSettings?: string, mutable display?: fontDisplay, mutable ascentOverride?: string, mutable descentOverride?: string, mutable lineGapOverride?: string,}Record fields
style
option< string >
weight
option< string >
stretch
option< string >
unicodeRange
option< string >
featureSettings
option< string >
display
option< fontDisplay >
ascentOverride
option< string >
descentOverride
option< string >
lineGapOverride
option< string >
fontFaceLoadStatus
type fontFaceLoadStatus = BaseCSSFontLoading.fontFaceLoadStatus = | @as("error") Error | @as("loaded") Loaded | @as("loading") Loading | @as("unloaded") UnloadedfontFaceSet
type fontFaceSet = BaseCSSFontLoading.fontFaceSetRecord fields
fontFaceSetLoadStatus
type fontFaceSetLoadStatus = BaseCSSFontLoading.fontFaceSetLoadStatus = | @as("loaded") Loaded | @as("loading") Loading