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
FontParser
Class FontParser
Hierarchy
Parser
<
Font
>
FontParser
Index
Constructors
constructor
Methods
as
Error
bind
feed
fork
is
Cont
is
Done
is
Error
trap
done
error
parse
parse
Rest
Constructors
constructor
new
Font
Parser
(
style
?:
FontStyle
, variant
?:
FontVariant
, weight
?:
FontWeight
, stretch
?:
FontStretch
, size
?:
FontSize
, height
?:
LineHeight
, family
?:
string
|
string
[]
, identOutput
?:
Output
<
string
>
, lengthParser
?:
Parser
<
Length
>
, familyParser
?:
Parser
<
string
>
, step
?:
number
)
:
FontParser
Parameters
Optional
style:
FontStyle
Optional
variant:
FontVariant
Optional
weight:
FontWeight
Optional
stretch:
FontStretch
Optional
size:
FontSize
Optional
height:
LineHeight
Optional
family:
string
|
string
[]
Optional
identOutput:
Output
<
string
>
Optional
lengthParser:
Parser
<
Length
>
Optional
familyParser:
Parser
<
string
>
Optional
step:
number
Returns
FontParser
Methods
as
Error
as
Error<O2>
(
)
:
Parser
<
O2
>
Type parameters
O2
Returns
Parser
<
O2
>
bind
bind
(
)
:
Font
Returns
Font
feed
feed
(
input
:
Input
)
:
Parser
<
Font
>
Parameters
input:
Input
Returns
Parser
<
Font
>
fork
fork
(
condition
:
unknown
)
:
Parser
<
Font
>
Parameters
condition:
unknown
Returns
Parser
<
Font
>
is
Cont
is
Cont
(
)
:
boolean
Returns
boolean
is
Done
is
Done
(
)
:
boolean
Returns
boolean
is
Error
is
Error
(
)
:
boolean
Returns
boolean
trap
trap
(
)
:
Error
Returns
Error
Static
done
done<O>
(
value
:
O
)
:
Parser
<
O
>
Type parameters
O
Parameters
value:
O
Returns
Parser
<
O
>
Static
error
error<O>
(
error
:
Error
|
Diagnostic
)
:
Parser
<
O
>
Type parameters
O
Parameters
error:
Error
|
Diagnostic
Returns
Parser
<
O
>
Static
parse
parse
(
input
:
Input
, style
?:
FontStyle
, variant
?:
FontVariant
, weight
?:
FontWeight
, stretch
?:
FontStretch
, size
?:
FontSize
, height
?:
LineHeight
, family
?:
string
|
string
[]
, identOutput
?:
Output
<
string
>
, lengthParser
?:
Parser
<
Length
>
, familyParser
?:
Parser
<
string
>
, step
?:
number
)
:
Parser
<
Font
>
Parameters
input:
Input
Optional
style:
FontStyle
Optional
variant:
FontVariant
Optional
weight:
FontWeight
Optional
stretch:
FontStretch
Optional
size:
FontSize
Optional
height:
LineHeight
Optional
family:
string
|
string
[]
Optional
identOutput:
Output
<
string
>
Optional
lengthParser:
Parser
<
Length
>
Optional
familyParser:
Parser
<
string
>
Optional
step:
number
Returns
Parser
<
Font
>
Static
parse
Rest
parse
Rest
(
input
:
Input
, style
?:
FontStyle
, variant
?:
FontVariant
, weight
?:
FontWeight
, stretch
?:
FontStretch
, size
?:
FontSize
, height
?:
LineHeight
, family
?:
string
|
string
[]
)
:
Parser
<
Font
>
Parameters
input:
Input
Optional
style:
FontStyle
Optional
variant:
FontVariant
Optional
weight:
FontWeight
Optional
stretch:
FontStretch
Optional
size:
FontSize
Optional
height:
LineHeight
Optional
family:
string
|
string
[]
Returns
Parser
<
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
Parser
constructor
as
Error
bind
feed
fork
is
Cont
is
Done
is
Error
trap
done
error
parse
parse
Rest
Generated using
TypeDoc