Skip to content

Function: wrapText() ​

ts
function wrapText(text, font, maxWidth): string[];

Experimental

FontMetricsOracle.wrapText on the default oracle.

Parameters ​

ParameterType
textstring
fontTextFont
maxWidthnumber

Returns ​

string[]

Released under the MIT License.