Function get_text_width

Source
pub fn get_text_width<S: AsRef<str>>(
    ctx: &Context,
    text: S,
) -> Result<u64, XError>
Expand description

Get the width of the text rendered with the font specified by the context