pub struct FontAtlas { /* private fields */ }Expand description
Font atlas management.
Maintains a cache of rasterized glyphs per font family. In GPU mode, these are uploaded as textures. In software mode, they are kept as alpha masks.
Implementations§
Source§impl FontAtlas
impl FontAtlas
Sourcepub fn register_family(&mut self, family: &str)
pub fn register_family(&mut self, family: &str)
Register a font family for use in rendering.
Sourcepub fn registered_families(&self) -> &[String]
pub fn registered_families(&self) -> &[String]
List all registered font families.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FontAtlas
impl RefUnwindSafe for FontAtlas
impl Send for FontAtlas
impl Sync for FontAtlas
impl Unpin for FontAtlas
impl UnsafeUnpin for FontAtlas
impl UnwindSafe for FontAtlas
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