Skip to main content

shown_font_id

Function shown_font_id 

Source
pub fn shown_font_id(
    ctx: &Context,
    role: Role,
    weight: Weight,
    size: f32,
) -> FontId
Expand description

The font a role’s text draws at a weight and a size where it is drawn: the preview family inside with_preview (once egui has it), else font_id.