[][src]Struct directwrite::typography::Typography

#[repr(transparent)]
pub struct Typography { /* fields omitted */ }

Represents a font typography setting.

Methods

impl Typography[src]

pub fn create(factory: &Factory) -> TypographyBuilder[src]

Create a new Typography object

pub fn feature_count(&self) -> u32[src]

Get the number of font features included in this typography object.

pub fn feature(&self, index: u32) -> Option<FontFeature>[src]

Get the font feature at the specified index.

pub fn all_features<'a>(&'a self) -> impl Iterator<Item = FontFeature> + 'a[src]

Get an iterator over all of the features stored in this typography object.

Trait Implementations

impl Send for Typography[src]

impl Sync for Typography[src]

impl Debug for Typography[src]

impl ComWrapper for Typography[src]

type Interface = IDWriteTypography

The raw interface type from winapi

Blanket Implementations

impl<T> FontKey for T where
    T: Send + Sync + 'static + ?Sized
[src]

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.