charton API / @chart-on/core / index / resolveFont
Function: resolveFont()
resolveFont(
theme,surface?):ResolvedFont
Defined in: packages/core/src/typography.ts:61
The font surface draws with: the surface block's fields, else the typography baseline's, else the theme's fontFamily and fontSize, regular weight and tabular numerals. Without surface, the baseline itself.
Parameters
theme
Pick<ChartTheme, "fontFamily" | "fontSize" | "typography">