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§
Sourcefn shape_text(
&self,
request: &ShapeRequest<'_>,
) -> Result<ShapedText, FontError>
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".