klyn.gui.windows.themes.ThemeManager.scaleAdaptiveFontSize
method

    public static scaleAdaptiveFontSize(value as Int) as Int:

Description

Scales a numeric font size with the same factors as `scaleAdaptiveFont`.

Custom-painted widgets use this counterpart for baselines, line heights and caret geometry so their layout remains synchronized with the font.

Parameters

Parameter | Description
--- | ---
`value` | Unscaled font size in pixels.

Returns

Font size adapted to the display and current zoom.

Example

    lineHeight = ThemeManager.scaleAdaptiveFontSize(17) + ThemeManager.scaleMetric(9)