Interface: CanvasFontSpec
Hierarchy
-
↳
CanvasFontSpec
Properties
family
• family: string
Default font family for all text, follows CSS font-family options.
Default
“‘Helvetica Neue’, ‘Helvetica’, ‘Arial’, sans-serif”
Inherited from
Defined in
types/index.d.ts:1735 (opens new window)
lineHeight
• lineHeight: string
| number
Height of an individual line of text (see MDN).
Default
1.2
Inherited from
Defined in
types/index.d.ts:1754 (opens new window)
size
• size: number
Default font size (in px) for text. Does not apply to radialLinear scale point labels.
Default
12
Inherited from
Defined in
types/index.d.ts:1740 (opens new window)
string
• string: string
Defined in
types/index.d.ts:1758 (opens new window)
style
• style: "normal"
| "inherit"
| "italic"
| "oblique"
| "initial"
Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit)
Default
‘normal’
Inherited from
Defined in
types/index.d.ts:1745 (opens new window)
weight
• weight: string
Default font weight (boldness). (see MDN).