Skip to main content

MeasureText

Trait MeasureText 

Source
pub trait MeasureText {
    // Required method
    fn measure_rich(&self, rt: &RichText) -> TextExtents;
}
Expand description

Text measurement contract.

The model crate computes element bounds (selection boxes, hit areas) from text extents but cannot measure glyphs itself — the renderer implements this with its skia text stack and injects it; tests use fixed stubs.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§