pub struct LoadedFont {
pub font_key: FontKey,
pub font_bytes: Vec<u8>,
pub font_index: i32,
pub font_instances: FastHashMap<Au, FontInstanceKey>,
pub font_metrics: FontMetrics,
}
Fields§
§font_key: FontKey
§font_bytes: Vec<u8>
§font_index: i32
Index of the font in case the bytes indicate a font collection
font_instances: FastHashMap<Au, FontInstanceKey>
§font_metrics: FontMetrics
Implementations§
Source§impl LoadedFont
impl LoadedFont
pub fn delete_font_instance(&mut self, size: &Au)
Trait Implementations§
Source§impl Clone for LoadedFont
impl Clone for LoadedFont
Source§fn clone(&self) -> LoadedFont
fn clone(&self) -> LoadedFont
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for LoadedFont
impl RefUnwindSafe for LoadedFont
impl Send for LoadedFont
impl Sync for LoadedFont
impl Unpin for LoadedFont
impl UnwindSafe 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)