pub struct FontData {
pub id: u64,
pub index: u32,
pub bytes: Arc<dyn AsRef<[u8]> + Send + Sync>,
}Expand description
A font file shared by the glyph runs that use it.
Fields§
§id: u64A process-unique identifier for the font file, usable as a cache key.
index: u32The index of the font in a font collection, or 0 for a single font.
bytes: Arc<dyn AsRef<[u8]> + Send + Sync>The bytes of the font file, shared and never copied per run.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FontData
impl !UnwindSafe for FontData
impl Freeze for FontData
impl Send for FontData
impl Sync for FontData
impl Unpin for FontData
impl UnsafeUnpin for FontData
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