Struct swash::scale::ScalerBuilder[][src]

pub struct ScalerBuilder<'a> { /* fields omitted */ }

Builder for configuring a scaler.

Implementations

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]

Adds variation settings to the scaler.

pub fn normalized_coords<I>(self, coords: I) -> Self where
    I: IntoIterator,
    I::Item: Borrow<NormalizedCoord>, 
[src]

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> Send for ScalerBuilder<'a>

impl<'a> Sync for ScalerBuilder<'a>

impl<'a> Unpin for ScalerBuilder<'a>

impl<'a> !UnwindSafe for ScalerBuilder<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.