pub enum Font {
Show 16 variants
Italic,
Upright,
Bold,
BoldItalic,
SansSerif,
SansSerifBold,
SansSerifItalic,
SansSerifBoldItalic,
Monospace,
Script,
BoldScript,
Fraktur,
BoldFraktur,
DoubleStruck,
Symbol,
Extra,
}Expand description
Typeface a run is set in.
Variants§
Italic
Italic math variable, the default for letters.
Upright
Upright roman.
Bold
BoldItalic
SansSerif
SansSerifBold
SansSerifItalic
SansSerifBoldItalic
Monospace
Script
BoldScript
Fraktur
BoldFraktur
DoubleStruck
Symbol
Symbols drawn from the symbol font rather than the text face.
Extra
Glyphs from the extra symbol face.
Implementations§
Trait Implementations§
impl Copy for Font
impl Eq for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnsafeUnpin for Font
impl UnwindSafe for Font
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