Enum tex_glyphs::fontstyles::FontModifier
source · pub enum FontModifier {
Blackboard = 0,
Fraktur = 1,
Script = 2,
Bold = 3,
Capitals = 4,
Monospaced = 5,
Italic = 6,
Oblique = 7,
SansSerif = 8,
}
Expand description
A font modifier
Variants§
Blackboard = 0
Blackboard (e.g. 𝔸
)
Fraktur = 1
Fraktur (e.g. 𝔄
)
Script = 2
Script (e.g. 𝒜
)
Bold = 3
Bold (e.g. 𝐀
)
Capitals = 4
Small capitals (e.g. ᴀ
for a
)
Monospaced = 5
Monospaced (e.g. 𝙰
, which is distinct from A
)
Italic = 6
Italic (e.g. 𝐴
)
Oblique = 7
Oblique (e.g. 𝐴
- in unicode, italic and oblique are the same)
SansSerif = 8
Sans serif (e.g. 𝖠
, which is distinct from A
)
Trait Implementations§
source§impl Clone for FontModifier
impl Clone for FontModifier
source§fn clone(&self) -> FontModifier
fn clone(&self) -> FontModifier
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FontModifier
impl Debug for FontModifier
source§impl PartialEq for FontModifier
impl PartialEq for FontModifier
source§fn eq(&self, other: &FontModifier) -> bool
fn eq(&self, other: &FontModifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FontModifier
impl Eq for FontModifier
impl StructuralPartialEq for FontModifier
Auto Trait Implementations§
impl RefUnwindSafe for FontModifier
impl Send for FontModifier
impl Sync for FontModifier
impl Unpin for FontModifier
impl UnwindSafe for FontModifier
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