Skip to main content

measure_text_width_styled

Function measure_text_width_styled 

Source
pub fn measure_text_width_styled(
    text: &str,
    size_px: f32,
    font_stack: &str,
) -> f32
Expand description

measure_text_width 的字体栈参数化版本(编辑器等宽字体栈用)