Sets the style for system fonts when text() is called.
The parameter, style, can be either NORMAL, ITALIC, BOLD, or BOLDITALIC.
textStyle() may be overridden by CSS styling. This function doesn't affect fonts loaded with loadFont().
Examples
Syntax
textStyle(style)
textStyle()
Parameters
style
NORMAL|ITALIC|BOLD|BOLDITALIC: The style to use
Returns
NORMAL|ITALIC|BOLD|BOLDITALIC: If no arguments are provided, the current style
Notice any errors or typos? Please let us know. Please feel free to edit src/type/textCore.js and open a pull request!