Enum piet_common::FontStyle
source · pub enum FontStyle {
Regular,
Italic,
}
Expand description
A font style, which may be italic or regular.
Variants§
Regular
Prefer the regular style for the current font family, if available.
Italic
Prefer the italic style for the current font family, if available.
If italic is not available and oblique is, we will use that; if neither is available we will apply synthetic italics to the regular style.
Trait Implementations§
source§impl From<FontStyle> for TextAttribute
impl From<FontStyle> for TextAttribute
source§fn from(src: FontStyle) -> TextAttribute
fn from(src: FontStyle) -> TextAttribute
Converts to this type from the input type.
source§impl PartialEq<FontStyle> for FontStyle
impl PartialEq<FontStyle> for FontStyle
impl Copy for FontStyle
impl Eq for FontStyle
impl StructuralEq for FontStyle
impl StructuralPartialEq for FontStyle
Auto Trait Implementations§
impl RefUnwindSafe for FontStyle
impl Send for FontStyle
impl Sync for FontStyle
impl Unpin for FontStyle
impl UnwindSafe for FontStyle
Blanket Implementations§
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.