Skip to main content

set_base_text_size

Function set_base_text_size 

Source
pub fn set_base_text_size(points: f32, cx: &mut App)
Expand description

Set the body size in points; every other role keeps its ratio to it, the way every corner is a ratio of Brand::radius.

A probe for the chrome that does not grow with the text — Theme::HEADER_HEIGHT, Theme::STATUS_STRIP_HEIGHT and every fixed py. The measured ramp is non-linear per role, so one ratio finds that coupling without describing the ramp; TextStyle::size stays the measured table at any setting.