pub struct RustybuzzEngine;Expand description
HarfBuzz-port shaping engine backed by rustybuzz and rustybuzz::ttf_parser.
Construct once and reuse across many shape calls; the engine is stateless.
Implementations§
Trait Implementations§
Source§impl Clone for RustybuzzEngine
impl Clone for RustybuzzEngine
Source§fn clone(&self) -> RustybuzzEngine
fn clone(&self) -> RustybuzzEngine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RustybuzzEngine
impl Debug for RustybuzzEngine
Source§impl Default for RustybuzzEngine
impl Default for RustybuzzEngine
Source§impl TextLayoutEngine for RustybuzzEngine
impl TextLayoutEngine for RustybuzzEngine
Source§fn shape(
&self,
req: &ShapeRequest<'_>,
provider: &dyn FontProvider,
) -> Result<ZenithGlyphRun, LayoutError>
fn shape( &self, req: &ShapeRequest<'_>, provider: &dyn FontProvider, ) -> Result<ZenithGlyphRun, LayoutError>
Source§fn shape_with_fallback(
&self,
req: &ShapeRequest<'_>,
provider: &dyn FontProvider,
) -> Result<FallbackResult, LayoutError>
fn shape_with_fallback( &self, req: &ShapeRequest<'_>, provider: &dyn FontProvider, ) -> Result<FallbackResult, LayoutError>
Shape
req.text with per-glyph font fallback, returning a
FallbackResult with one ZenithGlyphRun per contiguous sub-run
that resolved to a single face, plus any characters that no registered
face could cover. Read moreAuto Trait Implementations§
impl Freeze for RustybuzzEngine
impl RefUnwindSafe for RustybuzzEngine
impl Send for RustybuzzEngine
impl Sync for RustybuzzEngine
impl Unpin for RustybuzzEngine
impl UnsafeUnpin for RustybuzzEngine
impl UnwindSafe for RustybuzzEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more