[−][src]Struct directwrite::font_file::FontFile
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(&self) -> 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
unsafe fn get_raw(&self) -> *mut IDWriteFontFile
[src]
unsafe fn from_raw(ptr: *mut IDWriteFontFile) -> Self
[src]
unsafe fn into_raw(self) -> *mut IDWriteFontFile
[src]
unsafe fn from_ptr(ptr: ComPtr<IDWriteFontFile>) -> Self
[src]
unsafe fn into_ptr(self) -> ComPtr<IDWriteFontFile>
[src]
Blanket Implementations
impl<T> FontKey for T where
T: Send + Sync + 'static + ?Sized,
[src]
T: Send + Sync + 'static + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,