pub struct Font {
pub name: FontName,
pub size: f32,
pub slant: FontSlant,
pub weight: FontWeight,
}
Expand description
Complete font settings.
Fields
name: FontName
Name of the font used.
size: f32
Size of the font.
slant: FontSlant
Slant of the font.
weight: FontWeight
Weight of the font.
Trait Implementations
impl Copy for Font
Auto Trait Implementations
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more