pub(crate) struct LoadedFont {
font: Font,
instances: HashMap<Vec<FontVariation>, FontInstance>,
svg: HashMap<GlyphId, Option<Node>>,
raster: HashMap<GlyphId, Option<BitmapImage>>,
}Fields§
§font: Font§instances: HashMap<Vec<FontVariation>, FontInstance>§svg: HashMap<GlyphId, Option<Node>>§raster: HashMap<GlyphId, Option<BitmapImage>>Implementations§
Source§impl LoadedFont
impl LoadedFont
fn new(id: ID, fontdb: &Database) -> Option<Self>
pub(crate) fn instance( &mut self, variations: impl IntoIterator<Item = FontVariation>, ) -> &mut FontInstance
Auto Trait Implementations§
impl !RefUnwindSafe for LoadedFont
impl !UnwindSafe for LoadedFont
impl Freeze for LoadedFont
impl Send for LoadedFont
impl Sync for LoadedFont
impl Unpin for LoadedFont
impl UnsafeUnpin for LoadedFont
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