pub struct Font { /* private fields */ }
Expand description
The font that is used by the svg assembler to calculate text widths.
The embed_font
feature (that is enabled by default)` includes a Helvetica TTF
file into the binary, which enables better width calculations even when using more exotic
characters. When this feature is disabled, only the width of ASCII characters is
property calculated. Other characters widths are overestimated.
Implementations§
Trait Implementations§
impl Copy 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