[][src]Struct directwrite::font_file::FontFile

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

Represents a font file. Applications such as font managers or font viewers can call analyze to find out if a particular file is a font file, and whether it is a font type that is supported by the font system.

Methods

impl FontFile[src]

pub fn create<K: FontKey + ?Sized>(factory: &Factory) -> FontFileBuilder<K>[src]

Initializes a builder for creating a FontFile from either custom loaders or a file path.

pub fn analyze(&self) -> DWResult<Analysis>[src]

Analyzes a file and returns whether it represents a font, and whether the font type is supported by the font system.

Trait Implementations

impl PartialEq<FontFile> for FontFile[src]

impl Sync for FontFile[src]

impl Clone for FontFile[src]

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

Performs copy-assignment from source. Read more

impl Send for FontFile[src]

impl Debug for FontFile[src]

impl ComWrapper for FontFile[src]

type Interface = IDWriteFontFile

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]