pub struct FontStyle {
pub family: String,
pub size: f32,
pub weight: u16,
pub italic: bool,
}Expand description
Font style for text marks.
Fields§
§family: StringFont family name.
size: f32Font size in pixels.
weight: u16Font weight (400 = normal, 700 = bold).
italic: boolWhether to use italic style.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FontStyle
impl RefUnwindSafe for FontStyle
impl Send for FontStyle
impl Sync for FontStyle
impl Unpin for FontStyle
impl UnsafeUnpin for FontStyle
impl UnwindSafe for FontStyle
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