Sets the font size when text() is called.
Note: Font size is measured in pixels.
Calling textSize()
without an arugment returns the current size.
Examples
Syntax
textSize(size)
textSize()
Parameters
size
Number:
size of the letters in units of pixels.
Notice any errors or typos? Please let us know. Please feel free to edit src/typography/attributes.js and open a pull request!