pub struct Font {
pub families: Vec<String>,
pub style: FontStyle,
pub stretch: FontStretch,
pub weight: u16,
}
Expand description
Text font properties.
Fields§
§families: Vec<String>
A list of family names.
Never empty. Uses usvg_parser::Options::font_family
as fallback.
style: FontStyle
A font style.
stretch: FontStretch
A font stretch.
weight: u16
A font width.
Trait Implementations§
source§impl PartialEq for Font
impl PartialEq for Font
impl Eq for Font
impl StructuralEq for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more