[][src]Function textwidth::get_text_width

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

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