[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.FontFace.GetGdiCompatibleGlyphMetrics

GetGdiCompatibleGlyphMetrics Method

GetGdiCompatibleGlyphMetrics(float, float, Matrix3x2?, bool, short[], bool)

Obtains glyph metrics in font design units with the return values compatible with what GDI would produce.

Declaration
public GlyphMetrics[] GetGdiCompatibleGlyphMetrics(float fontSize, float pixelsPerDip, Matrix3x2? transform, bool useGdiNatural, short[] glyphIndices, bool isSideways)
Parameters
Type Name Description
float fontSize

The ogical size of the font in DIP units.

float pixelsPerDip

The number of physical pixels per DIP.

Matrix3x2? transform

An optional transform applied to the glyphs and their positions. This transform is applied after the scaling specified by the font size and pixelsPerDip.

bool useGdiNatural

When set to FALSE, the metrics are the same as the metrics of GDI aliased text. When set to TRUE, the metrics are the same as the metrics of text measured by GDI using a font created with CLEARTYPE_NATURAL_QUALITY.

short[] glyphIndices

An array of glyph indices for which to compute the metrics.

bool isSideways

A BOOL value that indicates whether the font is being used in a sideways run. This can affect the glyph metrics if the font has oblique simulation because sideways oblique simulation differs from non-sideways oblique simulation.

Returns
Type Description
GlyphMetrics[]

An array of C1.Win.DX.DirectWrite.GlyphMetrics structures filled by this function. The metrics are in font design units.

GetGdiCompatibleGlyphMetrics(float, float, Matrix3x2?, Bool, short[], int, GlyphMetrics[], Bool)

HRESULT IDWriteFontFace::GetGdiCompatibleGlyphMetrics([In] float emSize,[In] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[In] BOOL useGdiNatural,[In, Buffer] const unsigned short* glyphIndices,[In] unsigned int glyphCount,[Out, Buffer] DWRITE_GLYPH_METRICS* glyphMetrics,[In] BOOL isSideways)

Declaration
public void GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix3x2? transform, Bool useGdiNatural, short[] glyphIndices, int glyphCount, GlyphMetrics[] glyphMetrics, Bool isSideways)
Parameters
Type Name Description
float emSize
float pixelsPerDip
Matrix3x2? transform
Bool useGdiNatural
short[] glyphIndices
int glyphCount
GlyphMetrics[] glyphMetrics
Bool isSideways