Skip to main content

physical_font_px

Function physical_font_px 

pub fn physical_font_px(
    base_font: f32,
    ui_scale: f32,
    text_scale: f32,
    device_scale: f32,
) -> f32
Expand description

ui_scale/text_scale are accepted separately so a caller starting from an unscaled base size can compute the whole chain in one explicit, testable call.