pub struct FontFamily { /* private fields */ }Implementations§
Source§impl FontFamily
impl FontFamily
pub fn take(native: ComPtr<IDWriteFontFamily>) -> FontFamily
pub unsafe fn as_ptr(&self) -> *mut IDWriteFontFamily
pub fn name(&self) -> String
👎Deprecated: Use
family_name instead.pub fn family_name(&self) -> Result<String, HRESULT>
pub fn get_first_matching_font( &self, weight: FontWeight, stretch: FontStretch, style: FontStyle, ) -> Font
👎Deprecated: Use
first_matching_font instead.pub fn first_matching_font( &self, weight: FontWeight, stretch: FontStretch, style: FontStyle, ) -> Result<Font, HRESULT>
pub fn get_font_collection(&self) -> FontCollection
👎Deprecated: Use
font_collection instead.pub fn font_collection(&self) -> Result<FontCollection, HRESULT>
pub fn get_font_count(&self) -> u32
pub fn get_font(&self, index: u32) -> Font
👎Deprecated: Use
font instead.pub fn font(&self, index: u32) -> Result<Font, HRESULT>
Auto Trait Implementations§
impl !Freeze for FontFamily
impl !RefUnwindSafe for FontFamily
impl !Send for FontFamily
impl !Sync for FontFamily
impl Unpin for FontFamily
impl UnwindSafe for FontFamily
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more