Enum iced_graphics::font::Family
source · pub enum Family {
Title(String),
Serif,
SansSerif,
Monospace,
Cursive,
Fantasy,
}
font-source
only.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
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 (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.
Monospace
The sole criterion of a monospace font is that all glyphs have the same fixed width.
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.
Trait Implementations§
source§impl Clone for FamilyName
impl Clone for FamilyName
source§fn clone(&self) -> FamilyName
fn clone(&self) -> FamilyName
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FamilyName
impl Debug for FamilyName
source§impl PartialEq<FamilyName> for FamilyName
impl PartialEq<FamilyName> for FamilyName
source§fn eq(&self, other: &FamilyName) -> bool
fn eq(&self, other: &FamilyName) -> bool
impl StructuralPartialEq for FamilyName
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§
source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
source§fn into_color(self) -> U
fn into_color(self) -> U
source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
OutOfBounds
error is returned which contains
the unclamped color. Read more