BrowserFontManager
Defined in: font-manager.ts:18
Bounded explicit font loader. Export can fail closed instead of using an unknown system fallback.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BrowserFontManager(
options):BrowserFontManager
Defined in: font-manager.ts:30
Parameters
Section titled “Parameters”options
Section titled “options”fontSet?
Section titled “fontSet?”FontFaceSet
maxBytes?
Section titled “maxBytes?”number
maxFonts?
Section titled “maxFonts?”number
Returns
Section titled “Returns”BrowserFontManager
Accessors
Section titled “Accessors”disposed
Section titled “disposed”Get Signature
Section titled “Get Signature”get disposed():
boolean
Defined in: font-manager.ts:26
Returns
Section titled “Returns”boolean
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”dispose()
Section titled “dispose()”dispose():
void
Defined in: font-manager.ts:112
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”load()
Section titled “load()”load(
registration,signal?):Promise<void>
Defined in: font-manager.ts:65
Parameters
Section titled “Parameters”registration
Section titled “registration”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<void>
requireAvailable()
Section titled “requireAvailable()”requireAvailable(
families,sample?):string
Defined in: font-manager.ts:95
Parameters
Section titled “Parameters”families
Section titled “families”readonly string[]
sample?
Section titled “sample?”string
Returns
Section titled “Returns”string
resolveFallback()
Section titled “resolveFallback()”resolveFallback(
families,sample,fontSizePx):string
Defined in: font-manager.ts:87
Parameters
Section titled “Parameters”families
Section titled “families”readonly string[]
sample
Section titled “sample”string = 'Aa中🙂'
fontSizePx
Section titled “fontSizePx”number = 16
Returns
Section titled “Returns”string
snapshot()
Section titled “snapshot()”snapshot():
FontManagerSnapshot
Defined in: font-manager.ts:56
Returns
Section titled “Returns”unload()
Section titled “unload()”unload(
id):boolean
Defined in: font-manager.ts:103
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean