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
family: String
Font family.
Currently, is exactly the same as in the font-family
attribute.
So it can look like Verdana, 'Times New Roman', sans-serif
.
size: f64
style: FontStyle
variant: FontVariant
weight: FontWeight
stretch: FontStretch
Trait Implementations
impl Clone for Font
[src]
fn clone(&self) -> Font
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Font
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more