[][src]Trait piet::TextLayout

pub trait TextLayout {
    type Coord: Into<f64> + RoundFrom<f64>;
    fn width(&self) -> Self::Coord;
}

Associated Types

Loading content...

Required methods

fn width(&self) -> Self::Coord

Measure the advance width of the text.

Loading content...

Implementors

Loading content...