@mocanvas/mocanvas · interface
interface TextShapeUtilDisplayValues extends TLDefaultDisplayValuesWhat 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: stringThe label's CSS font stack.
labelFontSize: numberThe font size actually drawn, in page units: fontSize with scale applied.
labelLineHeight: numberThe 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.