Preparing search index...
The search index is not available
@rendley/sdk - v1.9.2
@rendley/sdk
FontRegistry
Class FontRegistry
Index
Constructors
constructor
Properties
fonts
Methods
destroy
load
From
Css
Url
load
From
Url
offload
preload
Html
Text
Fonts
serialize
deserialize
Constructors
constructor
new
FontRegistry
()
:
FontRegistry
Returns
FontRegistry
Properties
fonts
fonts
:
{
font
:
FontFace
;
src
:
string
}
[]
Methods
destroy
destroy
()
:
void
Returns
void
load
From
Css
Url
loadFromCssUrl
(
name
:
string
,
cssUrl
:
string
)
:
Promise
<
void
>
Parameters
name
:
string
cssUrl
:
string
Returns
Promise
<
void
>
load
From
Url
loadFromUrl
(
name
:
string
,
url
:
string
,
descriptors
?:
FontFaceDescriptors
,
)
:
Promise
<
void
>
Parameters
name
:
string
url
:
string
Optional
descriptors
:
FontFaceDescriptors
Returns
Promise
<
void
>
offload
offload
(
fontFamily
:
string
)
:
void
Parameters
fontFamily
:
string
Returns
void
preload
Html
Text
Fonts
preloadHtmlTextFonts
()
:
Promise
<
void
>
Returns
Promise
<
void
>
serialize
serialize
()
:
{
fonts
:
{
descriptors
?:
{
style
?:
string
;
weight
?:
string
}
;
family
:
string
;
src
:
string
;
}
[]
;
}
Returns
{
fonts
:
{
descriptors
?:
{
style
?:
string
;
weight
?:
string
}
;
family
:
string
;
src
:
string
;
}
[]
;
}
Static
deserialize
deserialize
(
data
:
unknown
)
:
Promise
<
FontRegistry
>
Parameters
data
:
unknown
Returns
Promise
<
FontRegistry
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
fonts
Methods
destroy
load
From
Css
Url
load
From
Url
offload
preload
Html
Text
Fonts
serialize
deserialize
@rendley/sdk - v1.9.2
Loading...