参考 textSize()

textSize()

text() 被调用时,本函数用于设置字体大小。

注意:字体大小以像素为单位。

调用不带参数的 textSize() 将返回当前的字体大小。

示例

语法

textSize(size)
textSize()

参数

size
数字:

字母的大小以像素为单位。

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

相关参考