Enum cosmic_text::Family
source · pub enum Family<'a> {
Name(&'a str),
Serif,
SansSerif,
Cursive,
Fantasy,
Monospace,
}
Expand description
A font family.
Variants
Name(&'a str)
The name of a font family of choice.
Serif
Serif fonts represent the formal text style for a script.
SansSerif
Glyphs in sans-serif fonts, as the term is used in CSS, are generally low contrast and have stroke endings that are plain — without any flaring, cross stroke, or other ornamentation.
Cursive
Glyphs in cursive fonts generally use a more informal script style, and the result looks more like handwritten pen or brush writing than printed letterwork.
Fantasy
Fantasy fonts are primarily decorative or expressive fonts that contain decorative or expressive representations of characters.
Monospace
The sole criterion of a monospace font is that all glyphs have the same fixed width.
Trait Implementations
impl<'a> Copy for Family<'a>
impl<'a> Eq for Family<'a>
impl<'a> StructuralEq for Family<'a>
impl<'a> StructuralPartialEq for Family<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Family<'a>
impl<'a> Send for Family<'a>
impl<'a> Sync for Family<'a>
impl<'a> Unpin for Family<'a>
impl<'a> UnwindSafe for Family<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more