Class: Font
Constructors​
constructor​
• new Font(fontStyle
, fontVariant
, fontWeight
, fontSize
, fontFamily
, inherit?
)
Parameters​
Name | Type |
---|---|
fontStyle | string |
fontVariant | string |
fontWeight | string |
fontSize | string |
fontFamily | string |
inherit? | string | Font |
Defined in​
Properties​
styles​
â–ª Static
Readonly
styles: "normal|italic|oblique|inherit"
Defined in​
variants​
â–ª Static
Readonly
variants: "normal|small-caps|inherit"
Defined in​
weights​
â–ª Static
Readonly
weights: "normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit"
Defined in​
fontFamily​
• Readonly
fontFamily: string
Defined in​
fontSize​
• Readonly
fontSize: string
Defined in​
fontStyle​
• Readonly
fontStyle: string
Defined in​
fontWeight​
• Readonly
fontWeight: string
Defined in​
fontVariant​
• Readonly
fontVariant: string
Defined in​
Methods​
parse​
â–¸ Static
parse(font?
, inherit?
): Font
Parameters​
Name | Type | Default value |
---|---|---|
font | string | '' |
inherit? | string | Font | undefined |
Returns​
Defined in​
toString​
â–¸ toString(): string
Returns​
string