Skip to main content

TextShaper

Trait TextShaper 

Source
pub trait TextShaper {
    // Required method
    fn shape_text(
        &self,
        request: &ShapeRequest<'_>,
    ) -> Result<ShapedText, FontError>;
}
Expand description

Text shaping half of a font system, decoupled from any concrete shaper crate.

Required Methods§

Source

fn shape_text( &self, request: &ShapeRequest<'_>, ) -> Result<ShapedText, FontError>

Shape text into positioned glyphs.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T> TextShaper for &T
where T: TextShaper,

Source§

fn shape_text( &self, request: &ShapeRequest<'_>, ) -> Result<ShapedText, FontError>

Implementors§