Struct usvg::Font [] [src]

pub struct Font {
    pub family: String,
    pub size: f64,
    pub style: FontStyle,
    pub variant: FontVariant,
    pub weight: FontWeight,
    pub stretch: FontStretch,
}

A font description.

Fields

Font family.

Currently, is exactly the same as in the font-family attribute. So it can look like Verdana, 'Times New Roman', sans-serif.

Trait Implementations

impl Clone for Font
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Font
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Font
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Font

impl Sync for Font