Struct swash::scale::ScalerBuilder [−][src]
pub struct ScalerBuilder<'a> { /* fields omitted */ }
Builder for configuring a scaler.
Implementations
impl<'a> ScalerBuilder<'a>
[src]
impl<'a> ScalerBuilder<'a>
[src]pub fn size(self, ppem: f32) -> Self
[src]
Specifies the font size in pixels per em. The default value is 0
which will produce
unscaled glyphs in original font units.
pub fn hint(self, yes: bool) -> Self
[src]
Specifies whether to apply hinting to outlines. The default value is false
.
pub fn variations<I>(self, settings: I) -> Self where
I: IntoIterator,
I::Item: Into<TagAndValue<f32>>,
[src]
I: IntoIterator,
I::Item: Into<TagAndValue<f32>>,
Adds variation settings to the scaler.
pub fn normalized_coords<I>(self, coords: I) -> Self where
I: IntoIterator,
I::Item: Borrow<NormalizedCoord>,
[src]
I: IntoIterator,
I::Item: Borrow<NormalizedCoord>,
Specifies the variation settings in terms of normalized coordinates. This will replace any previous variation settings.
pub fn build(self) -> Scaler<'a>
[src]
Builds a scaler for the current configuration.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ScalerBuilder<'a>
impl<'a> RefUnwindSafe for ScalerBuilder<'a>
impl<'a> Send for ScalerBuilder<'a>
impl<'a> Send for ScalerBuilder<'a>
impl<'a> Sync for ScalerBuilder<'a>
impl<'a> Sync for ScalerBuilder<'a>
impl<'a> Unpin for ScalerBuilder<'a>
impl<'a> Unpin for ScalerBuilder<'a>
impl<'a> !UnwindSafe for ScalerBuilder<'a>
impl<'a> !UnwindSafe for ScalerBuilder<'a>