Skip to main content

text_width_px

Function text_width_px 

Source
pub(super) fn text_width_px(text: &str, style: &TextStyle) -> f64
Expand description

merman 的字宽回调:返回 text 按 style 排版后的像素宽度。