[][src]Struct directwrite::font_family::FontFamily

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

Represents a family of related fonts.

Methods

impl FontFamily[src]

pub fn family_name(&self) -> Option<LocalizedStrings>[src]

Creates a localized strings object that contains the family names for the font family, indexed by locale name.

pub fn first_matching_font(
    &self,
    weight: FontWeight,
    stretch: FontStretch,
    style: FontStyle
) -> Option<Font>
[src]

Gets the font that best matches the specified properties.

pub fn matching_fonts(
    &self,
    weight: FontWeight,
    stretch: FontStretch,
    style: FontStyle
) -> Option<FontList>
[src]

Gets a list of fonts in the font family ranked in order of how well they match the specified properties.

Trait Implementations

impl PartialEq<FontFamily> for FontFamily[src]

impl Sync for FontFamily[src]

impl Clone for FontFamily[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Send for FontFamily[src]

impl Debug for FontFamily[src]

impl ComWrapper for FontFamily[src]

type Interface = IDWriteFontFamily

The raw interface type from winapi

Blanket Implementations

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

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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> 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.

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