FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IPretextTextMeasurerFactory

    trait · ferroui-pretext-contracts · v0.5.0

    trait IPretextTextMeasurerFactory
    

    An explicitly registered, platform-independent measurement backend.

    View source

    Members

    name

    fn name(self: &Self) -> &str
    

    Source

    is_supported

    fn is_supported(self: &Self) -> bool
    

    Source

    priority

    fn priority(self: &Self) -> i32
    

    Source

    create

    fn create(self: &Self, font: &str) -> Result<Rc<dyn IPretextTextMeasurer>, PretextError>
    

    Source

    shaper_factory

    fn shaper_factory(self: &Self) -> Option<Rc<dyn IPretextTextShaperFactory>>
    

    A combined backend can supply shaping without a second registration.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.