@mocanvas/editor · constant

LABEL_FONT_SIZES

declare const LABEL_FONT_SIZES: Record<DefaultSizeStyle$1, number>

Font size per size style for a *label* — the text inside a geo shape or on a note, as opposed to a text shape, which is its own text and uses FONT_SIZES.

A label is text in a box it has to share, so it steps up more gently: the gap between m and xl is 10px here against 20px for a text shape. Both scales were measured from the reference, per shape type, rather than assumed to be one table — which is what they were here until 4.11.0, so every label above s was drawn too large, an xl one by 37%.

Mentioned here

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.