pub struct ScalerBuilder<'a> { /* private fields */ }
Expand description
Builder for configuring a scaler.
Implementations§
source§impl<'a> ScalerBuilder<'a>
impl<'a> ScalerBuilder<'a>
sourcepub fn size(self, ppem: f32) -> Self
pub fn size(self, ppem: f32) -> Self
Specifies the font size in pixels per em. The default value is 0
which will produce
unscaled glyphs in original font units.
sourcepub fn hint(self, yes: bool) -> Self
pub fn hint(self, yes: bool) -> Self
Specifies whether to apply hinting to outlines. The default value is false
.
sourcepub fn variations<I>(self, settings: I) -> Self
pub fn variations<I>(self, settings: I) -> Self
Adds variation settings to the scaler.
sourcepub fn normalized_coords<I>(self, coords: I) -> Self
pub fn normalized_coords<I>(self, coords: I) -> Self
Specifies the variation settings in terms of normalized coordinates. This will replace any previous variation settings.
Auto Trait Implementations§
impl<'a> Freeze for ScalerBuilder<'a>
impl<'a> RefUnwindSafe for ScalerBuilder<'a>
impl<'a> Send for ScalerBuilder<'a>
impl<'a> Sync for ScalerBuilder<'a>
impl<'a> Unpin for ScalerBuilder<'a>
impl<'a> !UnwindSafe for ScalerBuilder<'a>
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