pub struct FontEmbolden {
pub amount: Diagonal2,
pub join: Join,
pub miter_limit: f64,
pub tolerance: f64,
}Expand description
Synthetic embolden settings for a glyph run.
Fields§
§amount: Diagonal2Synthetic embolden amount.
join: JoinJoin style used when expanding outlines.
miter_limit: f64Miter limit used when expanding outlines.
tolerance: f64Tolerance used when expanding outlines.
Implementations§
Source§impl FontEmbolden
impl FontEmbolden
Sourcepub fn new(amount: Diagonal2) -> Self
pub fn new(amount: Diagonal2) -> Self
Create synthetic embolden settings with default expansion controls.
Sourcepub fn with_miter_limit(self, miter_limit: f64) -> Self
pub fn with_miter_limit(self, miter_limit: f64) -> Self
Set the miter limit used when expanding outlines.
Sourcepub fn with_tolerance(self, tolerance: f64) -> Self
pub fn with_tolerance(self, tolerance: f64) -> Self
Set the tolerance used when expanding outlines.
Trait Implementations§
Source§impl Clone for FontEmbolden
impl Clone for FontEmbolden
Source§fn clone(&self) -> FontEmbolden
fn clone(&self) -> FontEmbolden
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FontEmbolden
impl Debug for FontEmbolden
Source§impl Default for FontEmbolden
impl Default for FontEmbolden
impl Copy for FontEmbolden
Auto Trait Implementations§
impl Freeze for FontEmbolden
impl RefUnwindSafe for FontEmbolden
impl Send for FontEmbolden
impl Sync for FontEmbolden
impl Unpin for FontEmbolden
impl UnsafeUnpin for FontEmbolden
impl UnwindSafe for FontEmbolden
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