pub struct RustybuzzFontSystem<L> { /* private fields */ }Expand description
Font system backed by ttf-parser and rustybuzz, with font bytes cached by FontId.
Implementations§
Source§impl<L> RustybuzzFontSystem<L>
impl<L> RustybuzzFontSystem<L>
Trait Implementations§
Source§impl<L: Debug> Debug for RustybuzzFontSystem<L>
impl<L: Debug> Debug for RustybuzzFontSystem<L>
Source§impl<L> FontLoader for RustybuzzFontSystem<L>where
L: FontLoader,
impl<L> FontLoader for RustybuzzFontSystem<L>where
L: FontLoader,
Source§impl<L> FontSystem for RustybuzzFontSystem<L>where
L: FontLoader,
impl<L> FontSystem for RustybuzzFontSystem<L>where
L: FontLoader,
Source§fn load_font(&self, query: &FontQuery) -> Result<FontData, FontError>
fn load_font(&self, query: &FontQuery) -> Result<FontData, FontError>
Load font data that matches the query.
Source§fn shape_text(
&self,
request: &ShapeRequest<'_>,
) -> Result<ShapedText, FontError>
fn shape_text( &self, request: &ShapeRequest<'_>, ) -> Result<ShapedText, FontError>
Shape text into positioned glyphs.
Source§impl<L> TextShaper for RustybuzzFontSystem<L>where
L: FontLoader,
impl<L> TextShaper for RustybuzzFontSystem<L>where
L: FontLoader,
Source§fn shape_text(
&self,
request: &ShapeRequest<'_>,
) -> Result<ShapedText, FontError>
fn shape_text( &self, request: &ShapeRequest<'_>, ) -> Result<ShapedText, FontError>
Shape text into positioned glyphs.
Auto Trait Implementations§
impl<L> !Freeze for RustybuzzFontSystem<L>
impl<L> !RefUnwindSafe for RustybuzzFontSystem<L>
impl<L> !Sync for RustybuzzFontSystem<L>
impl<L> !UnwindSafe for RustybuzzFontSystem<L>
impl<L> Send for RustybuzzFontSystem<L>where
L: Send,
impl<L> Unpin for RustybuzzFontSystem<L>where
L: Unpin,
impl<L> UnsafeUnpin for RustybuzzFontSystem<L>where
L: UnsafeUnpin,
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