klyn.gui.windows.themes.ThemeManager.scaleAdaptiveFont
method
public static scaleAdaptiveFont(font as String) as String
Description

Scales a painter font with the same content zoom factor as a KSS font.

Use this method when a custom-painted widget must visually match themed controls such as menu bars. Logical sizes are unchanged at nominal zoom; the screen resolution does not alter typography.

Parameters
ParameterDescription
fontFont specification to scale.
Returns

Font specification adapted to the current zoom.

Example
painter.font = ThemeManager.scaleAdaptiveFont("17px Cascadia Mono, monospace")