pub struct FontFile {
pub id: FontId,
pub bytes: Arc<Vec<u8>>,
pub blob: Blob<u8>,
pub family: String,
pub weights: Weights,
pub upright: bool,
}Expand description
A font file, checked: its bytes, its family’s name as its own tables give it, its weights, and whether it is upright.
Fields§
§id: FontId§bytes: Arc<Vec<u8>>§blob: Blob<u8>The bytes as parley and both backends take them: one blob for the file’s life, so every cache keyed by it keeps working.
family: String§weights: Weights§upright: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FontFile
impl !UnwindSafe for FontFile
impl Freeze for FontFile
impl Send for FontFile
impl Sync for FontFile
impl Unpin for FontFile
impl UnsafeUnpin for FontFile
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