pub struct Font {
pub family_name: String,
pub font_name: String,
pub path: PathBuf,
pub style: Style,
pub weight: Weight,
pub stretch: Stretch,
}
Expand description
A font.
Fields§
§family_name: String
Name of the family the font is part of.
font_name: String
Name of the font.
path: PathBuf
Path at which the font file is located.
style: Style
The font’s style.
weight: Weight
The font’s weight.
stretch: Stretch
The font’s stretch.
Trait Implementations§
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
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