Skip to main content

apply_scale

Function apply_scale 

Source
pub fn apply_scale(scale: f32, window: &mut Window)
👎Deprecated:

leaves the Component theme’s font size stale; pass the scale to init_component_theme and advance_component_theme, which Base-only windows may call too

Expand description

Set the text scale: 14px is 1rem at 100%, and every rem token follows it.

This leaves the Component theme’s font size behind the window’s rem size.