pub struct ResourceFontSystem<R> { /* private fields */ }Expand description
Loads font bytes through a ResourceProvider, shaping is unsupported.
Implementations§
Source§impl<R> ResourceFontSystem<R>
impl<R> ResourceFontSystem<R>
Sourcepub fn into_resources(self) -> R
pub fn into_resources(self) -> R
Unwraps and returns the underlying resource provider.
Sourcepub fn cached_font_count(&self) -> usize
pub fn cached_font_count(&self) -> usize
Number of font resources cached by resolver facing name.
Trait Implementations§
Source§impl<R: Clone> Clone for ResourceFontSystem<R>
impl<R: Clone> Clone for ResourceFontSystem<R>
Source§impl<R: Debug> Debug for ResourceFontSystem<R>
impl<R: Debug> Debug for ResourceFontSystem<R>
impl<R: Eq> Eq for ResourceFontSystem<R>
Source§impl<R> FontLoader for ResourceFontSystem<R>where
R: ResourceProvider,
impl<R> FontLoader for ResourceFontSystem<R>where
R: ResourceProvider,
Source§impl<R> FontSystem for ResourceFontSystem<R>where
R: ResourceProvider,
impl<R> FontSystem for ResourceFontSystem<R>where
R: ResourceProvider,
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<R: PartialEq> PartialEq for ResourceFontSystem<R>
impl<R: PartialEq> PartialEq for ResourceFontSystem<R>
impl<R: PartialEq> StructuralPartialEq for ResourceFontSystem<R>
Auto Trait Implementations§
impl<R> !Freeze for ResourceFontSystem<R>
impl<R> !RefUnwindSafe for ResourceFontSystem<R>
impl<R> !Sync for ResourceFontSystem<R>
impl<R> !UnwindSafe for ResourceFontSystem<R>
impl<R> Send for ResourceFontSystem<R>where
R: Send,
impl<R> Unpin for ResourceFontSystem<R>where
R: Unpin,
impl<R> UnsafeUnpin for ResourceFontSystem<R>where
R: 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