Search
Preparing search index...
The search index is not available
swimOS
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
@swim/font
Font
Class Font
Hierarchy
Font
Implements
Equals
Debug
Index
Constructors
constructor
Methods
debug
equals
family
height
size
stretch
style
to
Any
to
String
variant
weight
family
form
from
from
Any
from
Value
parse
size
stretch
style
variant
weight
Constructors
constructor
new
Font
(
style
:
FontStyle
|
null
, variant
:
FontVariant
|
null
, weight
:
FontWeight
|
null
, stretch
:
FontStretch
|
null
, size
:
FontSize
|
null
, height
:
LineHeight
|
null
, family
:
FontFamily
|
ReadonlyArray
<
FontFamily
>
)
:
Font
Parameters
style:
FontStyle
|
null
variant:
FontVariant
|
null
weight:
FontWeight
|
null
stretch:
FontStretch
|
null
size:
FontSize
|
null
height:
LineHeight
|
null
family:
FontFamily
|
ReadonlyArray
<
FontFamily
>
Returns
Font
Methods
debug
debug
(
output
:
Output
)
:
void
Parameters
output:
Output
Returns
void
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
family
family
(
)
:
FontFamily
|
FontFamily
[]
family
(
family
:
FontFamily
|
ReadonlyArray
<
FontFamily
>
)
:
Font
Returns
FontFamily
|
FontFamily
[]
Parameters
family:
FontFamily
|
ReadonlyArray
<
FontFamily
>
Returns
Font
height
height
(
)
:
LineHeight
|
null
height
(
height
:
AnyLineHeight
|
null
)
:
Font
Returns
LineHeight
|
null
Parameters
height:
AnyLineHeight
|
null
Returns
Font
size
size
(
)
:
FontSize
|
null
size
(
size
:
AnyFontSize
|
null
)
:
Font
Returns
FontSize
|
null
Parameters
size:
AnyFontSize
|
null
Returns
Font
stretch
stretch
(
)
:
FontStretch
|
null
stretch
(
stretch
:
FontStretch
|
null
)
:
Font
Returns
FontStretch
|
null
Parameters
stretch:
FontStretch
|
null
Returns
Font
style
style
(
)
:
FontStyle
|
null
style
(
style
:
FontStyle
|
null
)
:
Font
Returns
FontStyle
|
null
Parameters
style:
FontStyle
|
null
Returns
Font
to
Any
to
Any
(
)
:
FontInit
Returns
FontInit
to
String
to
String
(
)
:
string
Returns
string
variant
variant
(
)
:
FontVariant
|
null
variant
(
variant
:
FontVariant
|
null
)
:
Font
Returns
FontVariant
|
null
Parameters
variant:
FontVariant
|
null
Returns
Font
weight
weight
(
)
:
FontWeight
|
null
weight
(
weight
:
FontWeight
|
null
)
:
Font
Returns
FontWeight
|
null
Parameters
weight:
FontWeight
|
null
Returns
Font
Static
family
family
(
family
:
FontFamily
|
ReadonlyArray
<
FontFamily
>
)
:
Font
Parameters
family:
FontFamily
|
ReadonlyArray
<
FontFamily
>
Returns
Font
Static
form
form
(
unit
?:
Font
)
:
Form
<
Font
,
AnyFont
>
Parameters
Optional
unit:
Font
Returns
Form
<
Font
,
AnyFont
>
Static
from
from
(
style
?:
FontStyle
|
null
, variant
?:
FontVariant
|
null
, weight
?:
FontWeight
|
null
, stretch
?:
FontStretch
|
null
, size
?:
AnyFontSize
|
null
, height
?:
AnyLineHeight
|
null
, family
:
FontFamily
|
ReadonlyArray
<
FontFamily
>
)
:
Font
Parameters
Default value
style:
FontStyle
|
null
= null
Default value
variant:
FontVariant
|
null
= null
Default value
weight:
FontWeight
|
null
= null
Default value
stretch:
FontStretch
|
null
= null
Default value
size:
AnyFontSize
|
null
= null
Default value
height:
AnyLineHeight
|
null
= null
family:
FontFamily
|
ReadonlyArray
<
FontFamily
>
Returns
Font
Static
from
Any
from
Any
(
value
:
AnyFont
)
:
Font
Parameters
value:
AnyFont
Returns
Font
Static
from
Value
from
Value
(
value
:
Value
)
:
Font
|
undefined
Parameters
value:
Value
Returns
Font
|
undefined
Static
parse
parse
(
string
:
string
)
:
Font
Parameters
string:
string
Returns
Font
Static
size
size
(
size
:
AnyFontSize
|
null
, family
:
FontFamily
|
ReadonlyArray
<
FontFamily
>
)
:
Font
Parameters
size:
AnyFontSize
|
null
family:
FontFamily
|
ReadonlyArray
<
FontFamily
>
Returns
Font
Static
stretch
stretch
(
stretch
:
FontStretch
|
null
, family
:
FontFamily
|
ReadonlyArray
<
FontFamily
>
)
:
Font
Parameters
stretch:
FontStretch
|
null
family:
FontFamily
|
ReadonlyArray
<
FontFamily
>
Returns
Font
Static
style
style
(
style
:
FontStyle
|
null
, family
:
FontFamily
|
ReadonlyArray
<
FontFamily
>
)
:
Font
Parameters
style:
FontStyle
|
null
family:
FontFamily
|
ReadonlyArray
<
FontFamily
>
Returns
Font
Static
variant
variant
(
variant
:
FontVariant
|
null
, family
:
FontFamily
|
ReadonlyArray
<
FontFamily
>
)
:
Font
Parameters
variant:
FontVariant
|
null
family:
FontFamily
|
ReadonlyArray
<
FontFamily
>
Returns
Font
Static
weight
weight
(
weight
:
FontWeight
|
null
, family
:
FontFamily
|
ReadonlyArray
<
FontFamily
>
)
:
Font
Parameters
weight:
FontWeight
|
null
family:
FontFamily
|
ReadonlyArray
<
FontFamily
>
Returns
Font
Globals
@swim/core
@swim/mesh
@swim/ui
@swim/angle
@swim/animate
@swim/color
@swim/constraint
@swim/dom
@swim/font
@swim/gesture
@swim/interpolate
@swim/length
@swim/render
@swim/scale
@swim/shape
@swim/style
@swim/transform
@swim/transition
@swim/typeset
@swim/view
@swim/ux
@swim/web
Font
constructor
debug
equals
family
height
size
stretch
style
to
Any
to
String
variant
weight
family
form
from
from
Any
from
Value
parse
size
stretch
style
variant
weight
Font
Init
Any
Font
Any
Font
Size
Any
Line
Height
Font
Family
Font
Size
Font
Stretch
Font
Style
Font
Variant
Font
Weight
Generic
Family
Line
Height
Font
Family
Font
Size
Line
Height