pub struct SystemFace {
pub data: Arc<[u8]>,
pub index: u32,
pub family: Arc<str>,
pub weight: u16,
pub style: FontStyle,
}Expand description
A face system_face chose: its bytes, and what fontdb records for it.
Fields§
§data: Arc<[u8]>The face’s file, whole: for a face of a collection (.ttc), the
collection, addressed by index.
index: u32The face’s index in data.
family: Arc<str>The face’s own family name as fontdb records it: the first of its
FaceInfo::families, “always English US, unless it’s missing from
the font” (fontdb 0.23.0 src/lib.rs lines 826–827). A toolkit that draws
by name draws this one.
weight: u16The face’s own weight, OS/2 usWeightClass.
style: FontStyleThe face’s own style.
Trait Implementations§
Source§impl Clone for SystemFace
impl Clone for SystemFace
Source§impl Debug for SystemFace
impl Debug for SystemFace
impl Eq for SystemFace
Source§impl PartialEq for SystemFace
impl PartialEq for SystemFace
impl StructuralPartialEq for SystemFace
Auto Trait Implementations§
impl Freeze for SystemFace
impl RefUnwindSafe for SystemFace
impl Send for SystemFace
impl Sync for SystemFace
impl Unpin for SystemFace
impl UnsafeUnpin for SystemFace
impl UnwindSafe for SystemFace
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