@mocanvas/mocanvas · interface

TextShapeUtilDisplayValues

interface TextShapeUtilDisplayValues extends TLDefaultDisplayValues

What a text shape paints with.

A text shape is nothing but a label, and its label carries a scale the shared set knows nothing about — so the sizes it actually draws at are reported separately from the ones the style asks for.


Properties · 3

labelFontFamily: string

The label's CSS font stack.

labelFontSize: number

The font size actually drawn, in page units: fontSize with scale applied.

labelLineHeight: number

The line height actually drawn, in page units.

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.