Referencia textStyle()

textStyle()

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().

Ejemplos

Sintaxis

textStyle(style)
textStyle()

Parámetros

style
Constant:

styling for text, either NORMAL, ITALIC, BOLD or BOLDITALIC.

This page is generated from the comments in src/typography/attributes.js . Please feel free to edit it and submit a pull request!

Referencias Relacionadas