pub struct FontSpec {
pub style: Font,
pub weight: Option<FontWeight>,
pub italic: bool,
}Expand description
The full font descriptor a label carries: a semantic (or custom) Font style plus an optional
weight override and italic flag. Backends resolve this to one native font.
Fields§
§style: Font§weight: Option<FontWeight>§italic: boolTrait Implementations§
impl Copy for FontSpec
impl StructuralPartialEq for FontSpec
Auto Trait Implementations§
impl Freeze for FontSpec
impl RefUnwindSafe for FontSpec
impl Send for FontSpec
impl Sync for FontSpec
impl Unpin for FontSpec
impl UnsafeUnpin for FontSpec
impl UnwindSafe for FontSpec
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