pub struct NoFontSystem;Expand description
Deterministic empty font system.
Trait Implementations§
Source§impl Clone for NoFontSystem
impl Clone for NoFontSystem
impl Copy for NoFontSystem
Source§impl Debug for NoFontSystem
impl Debug for NoFontSystem
Source§impl Default for NoFontSystem
impl Default for NoFontSystem
Source§impl FontSystem for NoFontSystem
impl FontSystem for NoFontSystem
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.
Auto Trait Implementations§
impl Freeze for NoFontSystem
impl RefUnwindSafe for NoFontSystem
impl Send for NoFontSystem
impl Sync for NoFontSystem
impl Unpin for NoFontSystem
impl UnsafeUnpin for NoFontSystem
impl UnwindSafe for NoFontSystem
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