[−][src]Struct directwrite::typography::Typography
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
unsafe fn get_raw(&self) -> *mut IDWriteTypography
[src]
unsafe fn from_raw(ptr: *mut IDWriteTypography) -> Self
[src]
unsafe fn into_raw(self) -> *mut IDWriteTypography
[src]
unsafe fn from_ptr(ptr: ComPtr<IDWriteTypography>) -> Self
[src]
unsafe fn into_ptr(self) -> ComPtr<IDWriteTypography>
[src]
Blanket Implementations
impl<T> FontKey for T where
T: Send + Sync + 'static + ?Sized,
[src]
T: Send + Sync + 'static + ?Sized,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?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>,