Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/style
Font
Class Font
Hierarchy
Font
Implements
Interpolate
<
Font
>
Equals
Equivalent
Debug
Index
Constructors
constructor
Properties
family
height
size
stretch
string
Value
style
variant
weight
Methods
debug
equals
equivalent
To
interpolate
To
to
Any
to
String
with
Family
with
Height
with
Size
with
Stretch
with
Style
with
Variant
with
Weight
create
family
form
from
Any
from
Init
from
Value
is
Any
is
Init
parse
size
stretch
style
variant
weight
Constructors
constructor
new
Font
(
style
:
undefined
|
FontStyle
, variant
:
undefined
|
FontVariant
, weight
:
undefined
|
FontWeight
, stretch
:
undefined
|
FontStretch
, size
:
null
|
FontSize
, height
:
null
|
LineHeight
, family
:
string
|
readonly
string
[]
)
:
Font
Parameters
style:
undefined
|
FontStyle
variant:
undefined
|
FontVariant
weight:
undefined
|
FontWeight
stretch:
undefined
|
FontStretch
size:
null
|
FontSize
height:
null
|
LineHeight
family:
string
|
readonly
string
[]
Returns
Font
Properties
Readonly
family
family
:
string
|
readonly
string
[]
Readonly
height
height
:
null
|
LineHeight
Readonly
size
size
:
null
|
FontSize
Readonly
stretch
stretch
:
undefined
|
FontStretch
Readonly
string
Value
string
Value
:
undefined
|
string
Readonly
style
style
:
undefined
|
FontStyle
Readonly
variant
variant
:
undefined
|
FontVariant
Readonly
weight
weight
:
undefined
|
FontWeight
Methods
debug
debug
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
equivalent
To
equivalent
To
(
that
:
unknown
, epsilon
?:
number
)
:
boolean
Parameters
that:
unknown
Optional
epsilon:
number
Returns
boolean
interpolate
To
interpolate
To
(
that
:
Font
)
:
Interpolator
<
Font
>
interpolate
To
(
that
:
unknown
)
:
null
|
Interpolator
<
Font
>
Parameters
that:
Font
Returns
Interpolator
<
Font
>
Parameters
that:
unknown
Returns
null
|
Interpolator
<
Font
>
to
Any
to
Any
(
)
:
FontInit
Returns
FontInit
to
String
to
String
(
)
:
string
Returns
string
with
Family
with
Family
(
family
:
string
|
readonly
string
[]
)
:
Font
Parameters
family:
string
|
readonly
string
[]
Returns
Font
with
Height
with
Height
(
height
:
null
|
AnyLineHeight
)
:
Font
Parameters
height:
null
|
AnyLineHeight
Returns
Font
with
Size
with
Size
(
size
:
null
|
AnyFontSize
)
:
Font
Parameters
size:
null
|
AnyFontSize
Returns
Font
with
Stretch
with
Stretch
(
stretch
:
undefined
|
FontStretch
)
:
Font
Parameters
stretch:
undefined
|
FontStretch
Returns
Font
with
Style
with
Style
(
style
:
undefined
|
FontStyle
)
:
Font
Parameters
style:
undefined
|
FontStyle
Returns
Font
with
Variant
with
Variant
(
variant
:
undefined
|
FontVariant
)
:
Font
Parameters
variant:
undefined
|
FontVariant
Returns
Font
with
Weight
with
Weight
(
weight
:
undefined
|
FontWeight
)
:
Font
Parameters
weight:
undefined
|
FontWeight
Returns
Font
Static
create
create
(
style
:
undefined
|
FontStyle
, variant
:
undefined
|
FontVariant
, weight
:
undefined
|
FontWeight
, stretch
:
undefined
|
FontStretch
, size
:
undefined
|
null
|
AnyFontSize
, height
:
undefined
|
null
|
AnyLineHeight
, family
:
string
|
readonly
string
[]
)
:
Font
Parameters
style:
undefined
|
FontStyle
variant:
undefined
|
FontVariant
weight:
undefined
|
FontWeight
stretch:
undefined
|
FontStretch
size:
undefined
|
null
|
AnyFontSize
height:
undefined
|
null
|
AnyLineHeight
family:
string
|
readonly
string
[]
Returns
Font
Static
family
family
(
family
:
string
|
readonly
string
[]
)
:
Font
Parameters
family:
string
|
readonly
string
[]
Returns
Font
Static
form
form
(
unit
?:
Font
)
:
Form
<
Font
,
AnyFont
>
Parameters
Optional
unit:
Font
Returns
Form
<
Font
,
AnyFont
>
Static
from
Any
from
Any
(
value
:
AnyFont
)
:
Font
Parameters
value:
AnyFont
Returns
Font
Static
from
Init
from
Init
(
init
:
FontInit
)
:
Font
Parameters
init:
FontInit
Returns
Font
Static
from
Value
from
Value
(
value
:
Value
)
:
null
|
Font
Parameters
value:
Value
Returns
null
|
Font
Static
is
Any
is
Any
(
value
:
unknown
)
:
value
is
AnyFont
Parameters
value:
unknown
Returns
value
is
AnyFont
Static
is
Init
is
Init
(
value
:
unknown
)
:
value
is
FontInit
Parameters
value:
unknown
Returns
value
is
FontInit
Static
parse
parse
(
string
:
string
)
:
Font
Parameters
string:
string
Returns
Font
Static
size
size
(
size
:
null
|
AnyFontSize
, family
:
string
|
readonly
string
[]
)
:
Font
Parameters
size:
null
|
AnyFontSize
family:
string
|
readonly
string
[]
Returns
Font
Static
stretch
stretch
(
stretch
:
undefined
|
FontStretch
, family
:
string
|
readonly
string
[]
)
:
Font
Parameters
stretch:
undefined
|
FontStretch
family:
string
|
readonly
string
[]
Returns
Font
Static
style
style
(
style
:
undefined
|
FontStyle
, family
:
string
|
readonly
string
[]
)
:
Font
Parameters
style:
undefined
|
FontStyle
family:
string
|
readonly
string
[]
Returns
Font
Static
variant
variant
(
variant
:
undefined
|
FontVariant
, family
:
string
|
readonly
string
[]
)
:
Font
Parameters
variant:
undefined
|
FontVariant
family:
string
|
readonly
string
[]
Returns
Font
Static
weight
weight
(
weight
:
undefined
|
FontWeight
, family
:
string
|
readonly
string
[]
)
:
Font
Parameters
weight:
undefined
|
FontWeight
family:
string
|
readonly
string
[]
Returns
Font
Modules
@swim/system
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/component
@swim/ux
@swim/vis
@swim/maps
Font
constructor
family
height
size
stretch
string
Value
style
variant
weight
debug
equals
equivalent
To
interpolate
To
to
Any
to
String
with
Family
with
Height
with
Size
with
Stretch
with
Style
with
Variant
with
Weight
create
family
form
from
Any
from
Init
from
Value
is
Any
is
Init
parse
size
stretch
style
variant
weight
Generated using
TypeDoc