Reference textSize()

textSize()

Sets the font size when text() is called.

Note: Font size is measured in pixels.

Calling textSize() without an argument returns the current size.

Examples

Syntax

textSize(size)
textSize()

Parameters

size
Number:

size of the letters in units of pixels.

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

Related References