The style and size of the font.
The style of the font (eg. 'italic'): overrides the value in style.font.
The variant of the font (eg. 'small-caps'): overrides the value in style.font.
The weight of the font (eg. 'bold'): overrides the value in style.font
The size of the font (eg. 32 or '32px'): overrides the value in style.font.
A canvas fillstyle that will be used as the background for the whole Text object. Set to null to disable.
A canvas fillstyle that will be used on the text eg 'red', '#00FF00'.
Horizontal alignment of each line in multiline text. Can be: 'left', 'center' or 'right'. Does not affect single lines of text (see textBounds and boundsAlignH for that).
Horizontal alignment of the text within the textBounds. Can be: 'left', 'center' or 'right'.
Vertical alignment of the text within the textBounds. Can be: 'top', 'middle' or 'bottom'.
A canvas stroke style that will be used on the text stroke eg 'blue', '#FCFF00'.
A number that represents the thickness of the stroke. Default is 0 (no stroke).
Indicates if word wrap should be used.
The width in pixels at which text will wrap.
The maximum number of lines to be shown for wrapped text.
The size (in pixels) of the tabs, for when text includes tab characters. 0 disables. Can be an array of varying tab sizes, one per tab stop.
Horizontal alignment of each line in multiline text.
Horizontal alignment of each line in multiline text. Can be: 'left', 'center' or 'right'. Does not affect single lines of text (see textBounds and boundsAlignH for that).
A canvas fillstyle that will be used as the background for the whole Text object.
A canvas fillstyle that will be used as the background for the whole Text object. Set to null to disable.
Horizontal alignment of the text within the textBounds.
Horizontal alignment of the text within the textBounds. Can be: 'left', 'center' or 'right'.
Vertical alignment of the text within the textBounds.
Vertical alignment of the text within the textBounds. Can be: 'top', 'middle' or 'bottom'.
A canvas fillstyle that will be used on the text eg 'red', '#00FF00'.
The style and size of the font.
The size of the font (eg.
The size of the font (eg. 32 or '32px'): overrides the value in style.font.
The style of the font (eg.
The style of the font (eg. 'italic'): overrides the value in style.font.
The variant of the font (eg.
The variant of the font (eg. 'small-caps'): overrides the value in style.font.
The weight of the font (eg.
The weight of the font (eg. 'bold'): overrides the value in style.font
The maximum number of lines to be shown for wrapped text.
A canvas stroke style that will be used on the text stroke eg 'blue', '#FCFF00'.
A number that represents the thickness of the stroke.
A number that represents the thickness of the stroke. Default is 0 (no stroke).
The size (in pixels) of the tabs, for when text includes tab characters.
The size (in pixels) of the tabs, for when text includes tab characters. 0 disables. Can be an array of varying tab sizes, one per tab stop.
Indicates if word wrap should be used.
The width in pixels at which text will wrap.
Text Style Options