#[repr(C)]pub struct IDWriteFontFace2 {
pub lpVtbl: *const IDWriteFontFace2Vtbl,
}
Fields§
§lpVtbl: *const IDWriteFontFace2Vtbl
Implementations§
Source§impl IDWriteFontFace2
impl IDWriteFontFace2
pub unsafe fn IsColorFont(&self) -> BOOL
pub unsafe fn GetColorPaletteCount(&self) -> UINT32
pub unsafe fn GetPaletteEntryCount(&self) -> UINT32
pub unsafe fn GetPaletteEntries( &self, colorPaletteIndex: UINT32, firstEntryIndex: UINT32, entryCount: UINT32, paletteEntries: *mut DWRITE_COLOR_F, ) -> HRESULT
pub unsafe fn GetRecommendedRenderingMode( &self, fontEmSize: FLOAT, dpiX: FLOAT, dpiY: FLOAT, transform: *const DWRITE_MATRIX, isSideways: BOOL, outlineThreshold: DWRITE_OUTLINE_THRESHOLD, measuringMode: DWRITE_MEASURING_MODE, renderingParams: *mut IDWriteRenderingParams, renderingMode: *mut DWRITE_RENDERING_MODE, gridFitMode: *mut DWRITE_GRID_FIT_MODE, ) -> HRESULT
Methods from Deref<Target = IDWriteFontFace1>§
pub unsafe fn GetMetrics(&self, fontMetrics: *mut DWRITE_FONT_METRICS1)
pub unsafe fn GetGdiCompatibleMetrics( &self, emSize: FLOAT, pixelsPerDip: FLOAT, transform: *const DWRITE_MATRIX, fontMetrics: *mut DWRITE_FONT_METRICS1, ) -> HRESULT
pub unsafe fn GetCaretMetrics(&self, caretMetrics: *mut DWRITE_CARET_METRICS)
pub unsafe fn GetUnicodeRanges( &self, maxRangeCount: UINT32, unicodeRanges: *mut DWRITE_UNICODE_RANGE, actualRangeCount: *mut UINT32, ) -> HRESULT
pub unsafe fn IsMonospacedFont(&self) -> BOOL
pub unsafe fn GetDesignGlyphAdvances( &self, glyphCount: UINT32, glyphIndices: *const UINT16, glyphAdvances: *mut INT32, isSideways: BOOL, ) -> HRESULT
pub unsafe fn GetGdiCompatibleGlyphAdvances( &self, emSize: FLOAT, pixelsPerDip: FLOAT, transform: *const DWRITE_MATRIX, useGdiNatural: BOOL, isSideways: BOOL, glyphCount: UINT32, glyphIndices: *const UINT16, glyphAdvances: *mut INT32, ) -> HRESULT
pub unsafe fn GetKerningPairAdjustments( &self, glyphCount: UINT32, glyphIndices: *const UINT16, glyphAdvanceAdjustments: *mut INT32, ) -> HRESULT
pub unsafe fn HasKerningPairs(&self) -> BOOL
pub unsafe fn GetRecommendedRenderingMode( &self, fontEmSize: FLOAT, dpiX: FLOAT, dpiY: FLOAT, transform: *const DWRITE_MATRIX, isSideways: BOOL, outlineThreshold: DWRITE_OUTLINE_THRESHOLD, measuringMode: DWRITE_MEASURING_MODE, renderingMode: *mut DWRITE_RENDERING_MODE, ) -> HRESULT
pub unsafe fn GetVerticalGlyphVariants( &self, glyphCount: UINT32, nominalGlyphIndices: *const UINT16, verticalGlyphIndices: *mut UINT16, ) -> HRESULT
pub unsafe fn HasVerticalGlyphVariants(&self) -> BOOL
Methods from Deref<Target = IDWriteFontFace>§
pub unsafe fn GetType(&self) -> DWRITE_FONT_FACE_TYPE
pub unsafe fn GetFiles( &self, numberOfFiles: *mut UINT32, fontFiles: *mut *mut IDWriteFontFile, ) -> HRESULT
pub unsafe fn GetIndex(&self) -> UINT32
pub unsafe fn GetSimulations(&self) -> DWRITE_FONT_SIMULATIONS
pub unsafe fn IsSymbolFont(&self) -> BOOL
pub unsafe fn GetMetrics(&self, fontFaceMetrics: *mut DWRITE_FONT_METRICS)
pub unsafe fn GetGlyphCount(&self) -> UINT16
pub unsafe fn GetDesignGlyphMetrics( &self, glyphIndices: *const UINT16, glyphCount: UINT32, glyphMetrics: *mut DWRITE_GLYPH_METRICS, isSideways: BOOL, ) -> HRESULT
pub unsafe fn GetGlyphIndices( &self, codePoints: *const UINT32, codePointCount: UINT32, glyphIndices: *mut UINT16, ) -> HRESULT
pub unsafe fn TryGetFontTable( &self, openTypeTableTag: UINT32, tableData: *mut *const c_void, tableSize: *mut UINT32, tableContext: *mut *mut c_void, exists: *mut BOOL, ) -> HRESULT
pub unsafe fn ReleaseFontTable(&self, tableContext: *mut c_void) -> HRESULT
pub unsafe fn GetGlyphRunOutline( &self, emSize: FLOAT, glyphIndices: *const UINT16, glyphAdvances: *const FLOAT, glyphOffsets: *const DWRITE_GLYPH_OFFSET, glyphCount: UINT32, isSideways: BOOL, isRightToLeft: BOOL, geometrySink: *mut IDWriteGeometrySink, ) -> HRESULT
pub unsafe fn GetRecommendedRenderingMode( &self, emSize: FLOAT, pixelsPerDip: FLOAT, measuringMode: DWRITE_MEASURING_MODE, renderingParams: *mut IDWriteRenderingParams, renderingMode: *mut DWRITE_RENDERING_MODE, ) -> HRESULT
pub unsafe fn GetGdiCompatibleMetrics( &self, emSize: FLOAT, pixelsPerDip: FLOAT, transform: *const DWRITE_MATRIX, fontFaceMetrics: *mut DWRITE_FONT_METRICS, ) -> HRESULT
pub unsafe fn GetGdiCompatibleGlyphMetrics( &self, enSize: FLOAT, pixelsPerDip: FLOAT, transform: *const DWRITE_MATRIX, useGdiNatrual: BOOL, glyphIndices: *const UINT16, glyphCount: UINT32, glyphMetrics: *mut DWRITE_GLYPH_METRICS, isSideways: BOOL, ) -> HRESULT
Trait Implementations§
Source§impl Deref for IDWriteFontFace2
impl Deref for IDWriteFontFace2
Source§type Target = IDWriteFontFace1
type Target = IDWriteFontFace1
The resulting type after dereferencing.
Source§fn deref(&self) -> &IDWriteFontFace1
fn deref(&self) -> &IDWriteFontFace1
Dereferences the value.
Auto Trait Implementations§
impl Freeze for IDWriteFontFace2
impl RefUnwindSafe for IDWriteFontFace2
impl !Send for IDWriteFontFace2
impl !Sync for IDWriteFontFace2
impl Unpin for IDWriteFontFace2
impl UnwindSafe for IDWriteFontFace2
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