pub struct Font {
pub family: String,
pub size: f64,
pub style: FontStyle,
pub variant: FontVariant,
pub weight: FontWeight,
pub stretch: FontStretch,
}
Expand description
A font description.
Fields
family: String
Font family.
Currently, is exactly the same as in the font-family
attribute.
So it can look like Verdana, 'Times New Roman', sans-serif
.
size: f64
style: FontStyle
variant: FontVariant
weight: FontWeight
stretch: FontStretch
Trait Implementations
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