IPretextTextMeasurerFactory
trait · ferroui-pretext-contracts · v0.5.0
trait IPretextTextMeasurerFactory
An explicitly registered, platform-independent measurement backend.
Members
name
fn name(self: &Self) -> &str
is_supported
fn is_supported(self: &Self) -> bool
priority
fn priority(self: &Self) -> i32
create
fn create(self: &Self, font: &str) -> Result<Rc<dyn IPretextTextMeasurer>, PretextError>
shaper_factory
fn shaper_factory(self: &Self) -> Option<Rc<dyn IPretextTextShaperFactory>>
A combined backend can supply shaping without a second registration.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.