[]
IDWriteFontFace1
[Guid("a71efdb4-9fdb-4838-ad90-cfc3be8c3daf")]
public class FontFace1 : FontFace, IDisposable, IUnknown
Initializes a new instance of the FontFace1 class.
public FontFace1(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
GetCaretMetrics
public CaretMetrics CaretMetrics { get; }
GetMetrics
public FontMetrics1 Metrics { get; }
void IDWriteFontFace1::GetCaretMetrics([Out] DWRITE_CARET_METRICS* caretMetrics)
public void GetCaretMetrics(out CaretMetrics caretMetrics)
caretMetrics
CaretMetricsHRESULT IDWriteFontFace1::GetDesignGlyphAdvances([In] unsigned int glyphCount,[In, Buffer] const unsigned short* glyphIndices,[Out, Buffer] int* glyphAdvances,[In] BOOL isSideways)
public void GetDesignGlyphAdvances(int glyphCount, short[] glyphIndices, int[] glyphAdvances, Bool isSideways)
glyphCount
intglyphIndices
short[]glyphAdvances
int[]isSideways
BoolHRESULT IDWriteFontFace1::GetGdiCompatibleGlyphAdvances([In] float emSize,[In] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[In] BOOL useGdiNatural,[In] BOOL isSideways,[In] unsigned int glyphCount,[In, Buffer] const unsigned short* glyphIndices,[Out, Buffer] int* glyphAdvances)
public void GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix3x2? transform, Bool useGdiNatural, Bool isSideways, int glyphCount, short[] glyphIndices, int[] glyphAdvances)
emSize
floatpixelsPerDip
floattransform
Matrix3x2?useGdiNatural
BoolisSideways
BoolglyphCount
intglyphIndices
short[]glyphAdvances
int[]HRESULT IDWriteFontFace1::GetGdiCompatibleMetrics([In] float emSize,[In] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[Out] DWRITE_FONT_METRICS1* fontMetrics)
public void GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2? transform, out FontMetrics1 fontMetrics)
emSize
floatpixelsPerDip
floattransform
Matrix3x2?fontMetrics
FontMetrics1HRESULT IDWriteFontFace1::GetKerningPairAdjustments([In] unsigned int glyphCount,[In, Buffer] const unsigned short* glyphIndices,[Out, Buffer] int* glyphAdvanceAdjustments)
public void GetKerningPairAdjustments(int glyphCount, short[] glyphIndices, int[] glyphAdvanceAdjustments)
glyphCount
intglyphIndices
short[]glyphAdvanceAdjustments
int[]void IDWriteFontFace1::GetMetrics([Out] DWRITE_FONT_METRICS1* fontMetrics)
public void GetMetrics(out FontMetrics1 fontMetrics)
fontMetrics
FontMetrics1HRESULT IDWriteFontFace1::GetRecommendedRenderingMode([In] float fontEmSize,[In] float dpiX,[In] float dpiY,[In, Optional] const DWRITE_MATRIX* transform,[In] BOOL isSideways,[In] DWRITE_OUTLINE_THRESHOLD outlineThreshold,[In] DWRITE_MEASURING_MODE measuringMode,[Out] DWRITE_RENDERING_MODE* renderingMode)
public RenderingMode GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2? transform, Bool isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode)
fontEmSize
floatdpiX
floatdpiY
floattransform
Matrix3x2?isSideways
BooloutlineThreshold
OutlineThresholdmeasuringMode
MeasuringModeHRESULT IDWriteFontFace1::GetUnicodeRanges([In] unsigned int maxRangeCount,[Out, Buffer, Optional] DWRITE_UNICODE_RANGE* unicodeRanges,[Out] unsigned int* actualRangeCount)
public int GetUnicodeRanges(int maxRangeCount, UnicodeRange[] unicodeRanges)
maxRangeCount
intunicodeRanges
UnicodeRange[]BOOL IDWriteFontFace1::HasKerningPairs()
public bool HasKerningPairs()
BOOL IDWriteFontFace1::IsMonospacedFont()
public bool IsMonospacedFont()
Performs an explicit conversion from System.IntPtr to FontFace1.
public static explicit operator FontFace1(IntPtr nativePointer)
nativePointer
System.IntPtr