- Preparing search index...
- The search index is not available
pgul
Function splitTextByWidth
- splitTextByWidth(text: string, borderWidth: number, font?: string | FontData, applyKinsoku?: boolean): string[]
-
Parameters
-
text: string
-
borderWidth: number
-
font: string | FontData = builtInDefaultFontPropValue
-
applyKinsoku: boolean = true
Returns string[]
[en] Split text to draw text within specifed width.
[jp] 文字を指定幅に描画できる範囲に収まるよう、文字列を分割
Example
Returns
lines