调用 text() 时,设置系统字体的样式。
参数 style
可以是NORMAL
, ITALIC
、BOLD
或 BOLDITALIC
。
textStyle()
可能会被 CSS 样式覆盖。这个功能不影响使用 loadFont() 加载的字体。
示例
语法
textStyle(style)
textStyle()
参数
style
常量:
文本样式,NORMAL、 ITALIC、 BOLD 或 BOLDITALIC。
This page is generated from the comments in src/typography/attributes.js . Please feel free to edit it and submit a pull request!