Skip to main content

scaled_text

Function scaled_text 

Source
pub fn scaled_text<'a>(
    content: impl IntoFragment<'a>,
    base_size: f32,
    scale: FontScale,
) -> Text<'a>
Expand description

text(content).size(scale.apply(base_size)) — the one place every piece of Hyprforge UI text should go through, so FontScale (vision pillar #7: accessibility built into the shared layer, not bolted on per-app) actually reaches the screen instead of being a struct nobody calls.