pub struct LocalFontEntry {
pub path: PathBuf,
pub family: String,
pub weight: u16,
pub style: FontStyle,
pub index: u32,
}Expand description
A single local/system font face discovered by scan_font_dirs.
Fields§
§path: PathBufAbsolute or caller-relative path to the font file on disk.
family: StringTypographic family name (e.g. "Inter"), preferring name ID 16 over 1.
weight: u16Numeric weight (e.g. 400, 700).
style: FontStyleNormal or italic style.
index: u32Face index within the file (0 for single-face files; >0 for .ttc).
Trait Implementations§
Source§impl Clone for LocalFontEntry
impl Clone for LocalFontEntry
Source§fn clone(&self) -> LocalFontEntry
fn clone(&self) -> LocalFontEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalFontEntry
impl Debug for LocalFontEntry
impl Eq for LocalFontEntry
Source§impl PartialEq for LocalFontEntry
impl PartialEq for LocalFontEntry
Source§fn eq(&self, other: &LocalFontEntry) -> bool
fn eq(&self, other: &LocalFontEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LocalFontEntry
Auto Trait Implementations§
impl Freeze for LocalFontEntry
impl RefUnwindSafe for LocalFontEntry
impl Send for LocalFontEntry
impl Sync for LocalFontEntry
impl Unpin for LocalFontEntry
impl UnsafeUnpin for LocalFontEntry
impl UnwindSafe for LocalFontEntry
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