public static scaleAdaptiveFont(font as String) as String
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.
| Parameter | Description |
|---|---|
font | Font specification to scale. |
Font specification adapted to the current zoom.
painter.font = ThemeManager.scaleAdaptiveFont("17px Cascadia Mono, monospace")