@mocanvas/mocanvas · interface
interface TextMeasureOptionsThis one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.
Properties · 6
fontFamily: stringfontSize: numberfontWeight?: string | numberlineHeight: numberUnitless line height (multiplier of the font size).
maxWidth?: numberWrap width in CSS px, including padding. Omit for a single unwrapped run per paragraph.
padding?: numberPadding applied on every side; included in the returned w/h.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.