pub struct Font {
pub name: FontName,
pub size: f32,
pub slant: FontSlant,
pub weight: FontWeight,
}Expand description
Complete font settings.
Fields§
§name: FontNameName of the font used.
size: f32Size of the font.
slant: FontSlantSlant of the font.
weight: FontWeightWeight of the font.
Trait Implementations§
impl Copy 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