Struct mltg_bindings::Windows::Win32::Graphics::DirectWrite::IDWriteFontFace4 [−][src]
#[repr(transparent)]pub struct IDWriteFontFace4(_);
Implementations
pub unsafe fn GetFiles(
&self,
numberoffiles: *mut u32,
fontfiles: *mut Option<IDWriteFontFile>
) -> Result<()>
pub unsafe fn GetDesignGlyphMetrics<'a>(
&self,
glyphindices: *const u16,
glyphcount: u32,
glyphmetrics: *mut DWRITE_GLYPH_METRICS,
issideways: impl IntoParam<'a, BOOL>
) -> Result<()>
pub unsafe fn TryGetFontTable(
&self,
opentypetabletag: u32,
tabledata: *const *const c_void,
tablesize: *mut u32,
tablecontext: *mut *mut c_void,
exists: *mut BOOL
) -> Result<()>
pub unsafe fn GetGlyphRunOutline<'a>(
&self,
emsize: f32,
glyphindices: *const u16,
glyphadvances: *const f32,
glyphoffsets: *const DWRITE_GLYPH_OFFSET,
glyphcount: u32,
issideways: impl IntoParam<'a, BOOL>,
isrighttoleft: impl IntoParam<'a, BOOL>,
geometrysink: impl IntoParam<'a, ID2D1SimplifiedGeometrySink>
) -> Result<()>
pub unsafe fn GetRecommendedRenderingMode<'a>(
&self,
emsize: f32,
pixelsperdip: f32,
measuringmode: DWRITE_MEASURING_MODE,
renderingparams: impl IntoParam<'a, IDWriteRenderingParams>
) -> Result<DWRITE_RENDERING_MODE>
pub unsafe fn GetGdiCompatibleMetrics(
&self,
emsize: f32,
pixelsperdip: f32,
transform: *const DWRITE_MATRIX
) -> Result<DWRITE_FONT_METRICS>
pub unsafe fn GetGdiCompatibleGlyphMetrics<'a>(
&self,
emsize: f32,
pixelsperdip: f32,
transform: *const DWRITE_MATRIX,
usegdinatural: impl IntoParam<'a, BOOL>,
glyphindices: *const u16,
glyphcount: u32,
glyphmetrics: *mut DWRITE_GLYPH_METRICS,
issideways: impl IntoParam<'a, BOOL>
) -> Result<()>
pub unsafe fn GetGdiCompatibleMetrics2(
&self,
emsize: f32,
pixelsperdip: f32,
transform: *const DWRITE_MATRIX
) -> Result<DWRITE_FONT_METRICS1>
pub unsafe fn GetUnicodeRanges(
&self,
maxrangecount: u32,
unicoderanges: *mut DWRITE_UNICODE_RANGE,
actualrangecount: *mut u32
) -> Result<()>
pub unsafe fn GetDesignGlyphAdvances<'a>(
&self,
glyphcount: u32,
glyphindices: *const u16,
glyphadvances: *mut i32,
issideways: impl IntoParam<'a, BOOL>
) -> Result<()>
pub unsafe fn GetGdiCompatibleGlyphAdvances<'a>(
&self,
emsize: f32,
pixelsperdip: f32,
transform: *const DWRITE_MATRIX,
usegdinatural: impl IntoParam<'a, BOOL>,
issideways: impl IntoParam<'a, BOOL>,
glyphcount: u32,
glyphindices: *const u16
) -> Result<i32>
pub unsafe fn GetKerningPairAdjustments(
&self,
glyphcount: u32,
glyphindices: *const u16
) -> Result<i32>
pub unsafe fn GetRecommendedRenderingMode2<'a>(
&self,
fontemsize: f32,
dpix: f32,
dpiy: f32,
transform: *const DWRITE_MATRIX,
issideways: impl IntoParam<'a, BOOL>,
outlinethreshold: DWRITE_OUTLINE_THRESHOLD,
measuringmode: DWRITE_MEASURING_MODE
) -> Result<DWRITE_RENDERING_MODE>
pub unsafe fn GetVerticalGlyphVariants(
&self,
glyphcount: u32,
nominalglyphindices: *const u16
) -> Result<u16>
pub unsafe fn GetPaletteEntries(
&self,
colorpaletteindex: u32,
firstentryindex: u32,
entrycount: u32
) -> Result<DWRITE_COLOR_F>
pub unsafe fn GetRecommendedRenderingMode3<'a>(
&self,
fontemsize: f32,
dpix: f32,
dpiy: f32,
transform: *const DWRITE_MATRIX,
issideways: impl IntoParam<'a, BOOL>,
outlinethreshold: DWRITE_OUTLINE_THRESHOLD,
measuringmode: DWRITE_MEASURING_MODE,
renderingparams: impl IntoParam<'a, IDWriteRenderingParams>,
renderingmode: *mut DWRITE_RENDERING_MODE,
gridfitmode: *mut DWRITE_GRID_FIT_MODE
) -> Result<()>
pub unsafe fn GetInformationalStrings(
&self,
informationalstringid: DWRITE_INFORMATIONAL_STRING_ID,
informationalstrings: *mut Option<IDWriteLocalizedStrings>,
exists: *mut BOOL
) -> Result<()>
pub unsafe fn GetRecommendedRenderingMode4<'a>(
&self,
fontemsize: f32,
dpix: f32,
dpiy: f32,
transform: *const DWRITE_MATRIX,
issideways: impl IntoParam<'a, BOOL>,
outlinethreshold: DWRITE_OUTLINE_THRESHOLD,
measuringmode: DWRITE_MEASURING_MODE,
renderingparams: impl IntoParam<'a, IDWriteRenderingParams>,
renderingmode: *mut DWRITE_RENDERING_MODE1,
gridfitmode: *mut DWRITE_GRID_FIT_MODE
) -> Result<()>
pub unsafe fn AreCharactersLocal<'a>(
&self,
characters: impl IntoParam<'a, PWSTR>,
charactercount: u32,
enqueueifnotlocal: impl IntoParam<'a, BOOL>
) -> Result<BOOL>
pub unsafe fn AreGlyphsLocal<'a>(
&self,
glyphindices: *const u16,
glyphcount: u32,
enqueueifnotlocal: impl IntoParam<'a, BOOL>
) -> Result<BOOL>
pub unsafe fn GetGlyphImageFormats2(
&self,
glyphid: u16,
pixelsperemfirst: u32,
pixelsperemlast: u32
) -> Result<DWRITE_GLYPH_IMAGE_FORMATS>
pub unsafe fn GetGlyphImageData(
&self,
glyphid: u16,
pixelsperem: u32,
glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS,
glyphdata: *mut DWRITE_GLYPH_IMAGE_DATA,
glyphdatacontext: *mut *mut c_void
) -> Result<()>
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
type Vtable = IDWriteFontFace4_abi
Returns the vtable for an assumed interface. The name comes from Box::assume_init()
as
it assumes the vtable is implemented by the current interface’s vtable (e.g. a parent interface). Read more
Attempts to cast the current interface to another interface using QueryInterface
.
The name cast
is preferred to query
because there is a WinRT method named query but not one
named cast. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for IDWriteFontFace4
impl !Send for IDWriteFontFace4
impl !Sync for IDWriteFontFace4
impl Unpin for IDWriteFontFace4
impl UnwindSafe for IDWriteFontFace4
Blanket Implementations
Returns a pointer for setting the object’s value via an ABI call.
Casts the ABI representation to a Rust object by taking ownership of the bits.
Mutably borrows from an owned value. Read more