Skip to content

Documentation / @finchart/core / index / labelFont

Function: labelFont() ​

labelFont(readStyle): string

Defined in: packages/core/src/axis/labels.ts:107

Resolves the font a DOM label actually uses into a CSS shorthand string for measurement. Reads the same variable as the label style — reading a different name would let the measured font and the drawn font diverge, so the axis width couldn't fit the label.

Parameters ​

readStyle ​

StyleReader

Returns ​

string