pub struct Font { /* private fields */ }Expand description
Text font properties.
Implementations§
Source§impl Font
impl Font
Sourcepub fn families(&self) -> &[FontFamily]
pub fn families(&self) -> &[FontFamily]
A list of family names.
Never empty. Uses usvg::Options::font_family as fallback.
Sourcepub fn stretch(&self) -> FontStretch
pub fn stretch(&self) -> FontStretch
A font stretch.
Sourcepub fn variations(&self) -> &[FontVariation]
pub fn variations(&self) -> &[FontVariation]
Font variation settings for variable fonts.
Trait Implementations§
impl Eq for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl Freeze for Font
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