Skip to main content

number_job

Function number_job 

Source
pub fn number_job(
    ctx: &Context,
    text: &str,
    size: f32,
    color: Color32,
) -> LayoutJob
Expand description

A value’s text laid out so its digits line up with the values above and below it (number_font): what sliders, readouts and tables of numbers draw. In cells, each digit is its own section, right-aligned in a cell as wide as the face’s widest digit.