public static scaleAdaptiveFont(font as String) as String:
Scales a painter font with the same display and content factors as a KSS font.
Use this method when a custom-painted widget must visually match themed controls such as menu bars. The display factor is cached because this method can be called from a rendering hot path.
| Parameter | Description |
|---|---|
font | Font specification to scale. |
Font specification adapted to the display and current zoom.
painter.font = ThemeManager.scaleAdaptiveFont("17px Cascadia Mono, monospace")