pub struct FontAtlasService { /* private fields */ }Expand description
Shared font provider, glyph coverage atlas, and text shaping service reused across active and fallback backends.
Implementations§
Source§impl FontAtlasService
Shared font, glyph atlas, and text shaping constructors for FontAtlasService.
impl FontAtlasService
Shared font, glyph atlas, and text shaping constructors for FontAtlasService.
Sourcepub fn with_font_provider(font_provider: NativeSystemFont) -> Self
pub fn with_font_provider(font_provider: NativeSystemFont) -> Self
Source§impl FontAtlasService
impl FontAtlasService
pub fn get_font_provider(&self) -> &NativeSystemFont
pub fn get_mut_font_provider(&mut self) -> &mut NativeSystemFont
pub fn set_font_provider(&mut self, val: NativeSystemFont) -> &mut Self
pub fn get_glyph_atlas(&self) -> &GlyphAtlas
pub fn get_mut_glyph_atlas(&mut self) -> &mut GlyphAtlas
pub fn set_glyph_atlas(&mut self, val: GlyphAtlas) -> &mut Self
pub fn get_text_shaping_cache(&self) -> &TextShapingCache
pub fn get_mut_text_shaping_cache(&mut self) -> &mut TextShapingCache
pub fn set_text_shaping_cache(&mut self, val: TextShapingCache) -> &mut Self
Trait Implementations§
Source§impl Clone for FontAtlasService
impl Clone for FontAtlasService
Source§impl Debug for FontAtlasService
impl Debug for FontAtlasService
Auto Trait Implementations§
impl Forget for FontAtlasService
impl Freeze for FontAtlasServicewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<u64>: Freeze,
PhantomData<(GlyphKey, RasterizedGlyph)>: Freeze,
PhantomData<AsciiGlyphStyleTable>: Freeze,
PhantomData<(u64, usize)>: Freeze,
PhantomData<ShapingRunSlot>: Freeze,
PhantomData<LineBreakSlot>: Freeze,
PhantomData<u32>: Freeze,
impl Move for FontAtlasService
impl RefUnwindSafe for FontAtlasService
impl Send for FontAtlasServicewhere
RawVecInner: Send,
impl Sync for FontAtlasServicewhere
RawVecInner: Sync,
impl Unpin for FontAtlasService
impl UnsafeUnpin for FontAtlasServicewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
PhantomData<(GlyphKey, RasterizedGlyph)>: UnsafeUnpin,
PhantomData<AsciiGlyphStyleTable>: UnsafeUnpin,
PhantomData<(u64, usize)>: UnsafeUnpin,
PhantomData<ShapingRunSlot>: UnsafeUnpin,
PhantomData<LineBreakSlot>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
impl UnwindSafe for FontAtlasServicewhere
RawVecInner: UnwindSafe,
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