Skip to main content

TextShaper

Trait TextShaper 

Source
pub trait TextShaper {
    // Required method
    fn shape_document(&self, request: TextLayoutRequest) -> Result<TextLayout>;
}
Expand description

Lays text out: implemented by the measure and paint contexts, and by LayoutContext.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl TextShaper for LayoutContext

Source§

impl TextShaper for MeasureCtx

Source§

impl TextShaper for PaintCtx

Implementors§