Skip to content

overlayFont

overlayFont(font): string

Defined in: labels/label-layer.ts:133

The overlay form of a label font: line-height 1 (11px → 11px/1), so the element’s box is the measured label box and its text sits where Canvas/SVG centre theirs. A line-height in the font is replaced (native text has none); set style.lineHeight to change the overlay’s. Px font sizes only, as canvasFont.

string

string