Struct swash::Synthesis[][src]

pub struct Synthesis { /* fields omitted */ }

Synthesis suggestions for mistmatched font attributes.

This is generated by the synthesize method on Attributes.

Implementations

impl Synthesis[src]

pub fn any(&self) -> bool[src]

Returns true if any synthesis suggestions are available.

pub fn variations(&self) -> &[Setting<f32>]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns the variations that should be applied to match the requested attributes.

pub fn embolden(&self) -> bool[src]

Returns true if the scaler should apply a faux bold.

pub fn skew(&self) -> Option<f32>[src]

Returns a skew angle for faux italic/oblique, if requested.

Trait Implementations

impl Clone for Synthesis[src]

impl Copy for Synthesis[src]

impl Default for Synthesis[src]

impl PartialEq<Synthesis> for Synthesis[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.