Trait windows::Win32::Graphics::DirectWrite::IDWriteFontFace_Impl
pub trait IDWriteFontFace_Impl: Sized {
Show 15 methods
// Required methods
fn GetType(&self) -> DWRITE_FONT_FACE_TYPE;
fn GetFiles(
&self,
numberoffiles: *mut u32,
fontfiles: *mut Option<IDWriteFontFile>,
) -> Result<()>;
fn GetIndex(&self) -> u32;
fn GetSimulations(&self) -> DWRITE_FONT_SIMULATIONS;
fn IsSymbolFont(&self) -> BOOL;
fn GetMetrics(&self, fontfacemetrics: *mut DWRITE_FONT_METRICS);
fn GetGlyphCount(&self) -> u16;
fn GetDesignGlyphMetrics(
&self,
glyphindices: *const u16,
glyphcount: u32,
glyphmetrics: *mut DWRITE_GLYPH_METRICS,
issideways: BOOL,
) -> Result<()>;
fn GetGlyphIndices(
&self,
codepoints: *const u32,
codepointcount: u32,
glyphindices: *mut u16,
) -> Result<()>;
fn TryGetFontTable(
&self,
opentypetabletag: u32,
tabledata: *mut *mut c_void,
tablesize: *mut u32,
tablecontext: *mut *mut c_void,
exists: *mut BOOL,
) -> Result<()>;
fn ReleaseFontTable(&self, tablecontext: *const c_void);
fn GetGlyphRunOutline(
&self,
emsize: f32,
glyphindices: *const u16,
glyphadvances: *const f32,
glyphoffsets: *const DWRITE_GLYPH_OFFSET,
glyphcount: u32,
issideways: BOOL,
isrighttoleft: BOOL,
geometrysink: Option<&ID2D1SimplifiedGeometrySink>,
) -> Result<()>;
fn GetRecommendedRenderingMode(
&self,
emsize: f32,
pixelsperdip: f32,
measuringmode: DWRITE_MEASURING_MODE,
renderingparams: Option<&IDWriteRenderingParams>,
) -> Result<DWRITE_RENDERING_MODE>;
fn GetGdiCompatibleMetrics(
&self,
emsize: f32,
pixelsperdip: f32,
transform: *const DWRITE_MATRIX,
fontfacemetrics: *mut DWRITE_FONT_METRICS,
) -> Result<()>;
fn GetGdiCompatibleGlyphMetrics(
&self,
emsize: f32,
pixelsperdip: f32,
transform: *const DWRITE_MATRIX,
usegdinatural: BOOL,
glyphindices: *const u16,
glyphcount: u32,
glyphmetrics: *mut DWRITE_GLYPH_METRICS,
issideways: BOOL,
) -> Result<()>;
}
Required Methods§
fn GetType(&self) -> DWRITE_FONT_FACE_TYPE
fn GetFiles( &self, numberoffiles: *mut u32, fontfiles: *mut Option<IDWriteFontFile>, ) -> Result<()>
fn GetIndex(&self) -> u32
fn GetSimulations(&self) -> DWRITE_FONT_SIMULATIONS
fn IsSymbolFont(&self) -> BOOL
fn GetMetrics(&self, fontfacemetrics: *mut DWRITE_FONT_METRICS)
fn GetGlyphCount(&self) -> u16
fn GetDesignGlyphMetrics( &self, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: BOOL, ) -> Result<()>
fn GetGlyphIndices( &self, codepoints: *const u32, codepointcount: u32, glyphindices: *mut u16, ) -> Result<()>
fn TryGetFontTable( &self, opentypetabletag: u32, tabledata: *mut *mut c_void, tablesize: *mut u32, tablecontext: *mut *mut c_void, exists: *mut BOOL, ) -> Result<()>
fn ReleaseFontTable(&self, tablecontext: *const c_void)
fn GetGlyphRunOutline( &self, emsize: f32, glyphindices: *const u16, glyphadvances: *const f32, glyphoffsets: *const DWRITE_GLYPH_OFFSET, glyphcount: u32, issideways: BOOL, isrighttoleft: BOOL, geometrysink: Option<&ID2D1SimplifiedGeometrySink>, ) -> Result<()>
fn GetRecommendedRenderingMode( &self, emsize: f32, pixelsperdip: f32, measuringmode: DWRITE_MEASURING_MODE, renderingparams: Option<&IDWriteRenderingParams>, ) -> Result<DWRITE_RENDERING_MODE>
fn GetGdiCompatibleMetrics( &self, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, fontfacemetrics: *mut DWRITE_FONT_METRICS, ) -> Result<()>
fn GetGdiCompatibleGlyphMetrics( &self, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: BOOL, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: BOOL, ) -> Result<()>
Object Safety§
This trait is not object safe.