Trait ttf_word_wrap::Measure[][src]

pub trait Measure: Debug {
    fn str(&self, text: &str) -> u32;
fn char(&self, c: char) -> Option<u16>; }

Implementing this allows overriding of how glyphs are measured.

Required methods

fn str(&self, text: &str) -> u32[src]

Measures the display width of text.

fn char(&self, c: char) -> Option<u16>[src]

Measures the display width of c.

Returns None if the width is not known.

Loading content...

Implementors

impl<'a> Measure for TTFParserMeasure<'a>[src]

Loading content...