Enum font_kit::family_name::FamilyName [−][src]
pub enum FamilyName { Title(String), Serif, SansSerif, Monospace, Cursive, Fantasy, }
Expand description
A possible value for the font-family
CSS property.
These descriptions are taken from CSS Fonts Level 3 § 3.1: https://drafts.csswg.org/css-fonts-3/#font-family-prop.
TODO(pcwalton): system-ui
, emoji
, math
, fangsong
Variants
Title(String)
A specific font family, specified by name: e.g. “Arial”, “times”.
Serif fonts represent the formal text style for a script.
Glyphs in sans-serif fonts, as the term is used in CSS, are generally low contrast (vertical and horizontal stems have the close to the same thickness) and have stroke endings that are plain — without any flaring, cross stroke, or other ornamentation.
The sole criterion of a monospace font is that all glyphs have the same fixed width.
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 fonts are primarily decorative or expressive fonts that contain decorative or expressive representations of characters.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FamilyName
impl Send for FamilyName
impl Sync for FamilyName
impl Unpin for FamilyName
impl UnwindSafe for FamilyName
Blanket Implementations
Mutably borrows from an owned value. Read more