[−][src]Struct directwrite::font_family::FontFamily
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]
&self,
weight: FontWeight,
stretch: FontStretch,
style: FontStyle
) -> Option<Font>
Gets the font that best matches the specified properties.
pub fn matching_fonts(
&self,
weight: FontWeight,
stretch: FontStretch,
style: FontStyle
) -> Option<FontList>
[src]
&self,
weight: FontWeight,
stretch: FontStretch,
style: FontStyle
) -> Option<FontList>
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]
fn eq(&self, other: &FontFamily) -> bool
[src]
fn ne(&self, other: &FontFamily) -> bool
[src]
impl Sync for FontFamily
[src]
impl Clone for FontFamily
[src]
fn clone(&self) -> 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
unsafe fn get_raw(&self) -> *mut IDWriteFontFamily
[src]
unsafe fn from_raw(ptr: *mut IDWriteFontFamily) -> Self
[src]
unsafe fn into_raw(self) -> *mut IDWriteFontFamily
[src]
unsafe fn from_ptr(ptr: ComPtr<IDWriteFontFamily>) -> Self
[src]
unsafe fn into_ptr(self) -> ComPtr<IDWriteFontFamily>
[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,