Trait ttf_word_wrap::Measure [−][src]
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.