Skip to content

Function: resolveFontURL() ​

ts
function resolveFontURL(family, weight?, style?): string | undefined;

Experimental

Resolve a CSS family list to a registered font URL (resolveFontFace). Returns undefined when no family is registered, meaning "use the default font" (resolveDrawnFontURL also resolves the built-in default font).

Parameters ​

ParameterType
familystring
weight?TextFontWeight
style?TextFontStyle

Returns ​

string | undefined

Released under the MIT License.