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