Skip to content

Interface: TextRunWrapOptions ​

Experimental

Options of wrapTextRuns.

Properties ​

PropertyTypeDescription
measure?(text, font) => numberExperimental Width of text (no line breaks) drawn in font, px, trailing whitespace excluded. Default: the oracle's measureWidth, the measure plain labels wrap with.
oracle?FontMetricsOracleExperimental Default: the shared metrics oracle.

Released under the MIT License.