pub enum FontStyle {
Normal,
Italic,
Oblique(Option<f32>),
}Expand description
Visual slant of a font.
Mirrors parley/fontique’s FontStyle (see parley::FontStyle).
Variants§
Normal
An upright or “roman” style. Default.
Italic
A slanted style, generally with a different structure from the normal style.
Oblique(Option<f32>)
A slanted style derived from the normal style, with an optional angle
in degrees (None uses the engine-specific default angle).
Trait Implementations§
impl Copy for FontStyle
impl StructuralPartialEq for FontStyle
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