リファレンス textWidth()

textWidth()

与えられた文字列の幅を計算します。

実例

シンタックス

textWidth(str)

パラメーター

str
String:

幅を計算する文字列

リターン

Number: 文字列の幅
Notice any errors or typos? Please let us know. Please feel free to edit src/typography/attributes.js and open a pull request!

関連するリファレンス