Trait ttf_word_wrap::Measure[][src]

pub trait Measure: Debug {
    fn str(&self, text: &str) -> u32;
fn char(&self, c: char) -> 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) -> u16[src]

Measures the display width of c.

Loading content...

Implementors

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

Loading content...