Trait TextLayout
piet_common
pub trait TextLayout { type Coord: RoundFrom<f64> + Into<f64>; fn width(&self) -> Self::Coord; }
type Coord: RoundFrom<f64> + Into<f64>
fn width(&self) -> Self::Coord
Measure the advance width of the text.
impl TextLayout for CairoTextLayout
type Coord = f64
fn width(&self) -> f64