pub struct FontAttributes {
pub size: f32,
pub family: FontFamily,
pub stretch: FontStretch,
pub weight: FontWeight,
pub style: FontStyle,
pub ligatures: bool,
pub color: Color,
}Expand description
Attributes of a section of text.
Fields§
§size: f32The font size of the font.
family: FontFamilyThe font family of the font.
stretch: FontStretchThe font stretch of the font.
weight: FontWeightThe font weight of the font.
style: FontStyleThe font style of the font.
ligatures: boolWhether to use ligatures.
color: ColorThe color of the font.
Trait Implementations§
Source§impl Clone for FontAttributes
impl Clone for FontAttributes
Source§fn clone(&self) -> FontAttributes
fn clone(&self) -> FontAttributes
Returns a copy of the value. Read more
1.0.0 · 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 FontAttributes
impl Debug for FontAttributes
Source§impl Default for FontAttributes
impl Default for FontAttributes
Source§fn default() -> FontAttributes
fn default() -> FontAttributes
Returns the “default value” for a type. Read more
Source§impl Hash for FontAttributes
impl Hash for FontAttributes
Source§impl PartialEq for FontAttributes
impl PartialEq for FontAttributes
impl Eq for FontAttributes
impl StructuralPartialEq for FontAttributes
Auto Trait Implementations§
impl Freeze for FontAttributes
impl RefUnwindSafe for FontAttributes
impl Send for FontAttributes
impl Sync for FontAttributes
impl Unpin for FontAttributes
impl UnwindSafe for FontAttributes
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