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: FontIdIts identity: the SHA-256 of its bytes.
bytes: Arc<Vec<u8>>Its bytes, as read: what the wire carries.
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: StringIts family’s name, as its own tables give it.
weights: WeightsThe weights it has: a static font’s one, or a variable font’s axis.
upright: boolWhether it is upright: neither italic nor oblique.
Implementations§
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