[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.FontFace.GetDesignGlyphMetrics

GetDesignGlyphMetrics Method

GetDesignGlyphMetrics(short[], bool)

Obtains ideal (resolution-independent) glyph metrics in font design units.

Declaration
public GlyphMetrics[] GetDesignGlyphMetrics(short[] glyphIndices, bool isSideways)
Parameters
Type Name Description
short[] glyphIndices

An array of glyph indices for which to compute metrics. The array must contain at least as many elements as specified by glyphCount.

bool isSideways

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 GlyphMetrics structures.

Remarks

Design glyph metrics are used for glyph positioning.

GetDesignGlyphMetrics(short[], int, GlyphMetrics[], Bool)

HRESULT IDWriteFontFace::GetDesignGlyphMetrics([In, Buffer] const unsigned short* glyphIndices,[In] unsigned int glyphCount,[Out, Buffer] DWRITE_GLYPH_METRICS* glyphMetrics,[In] BOOL isSideways)

Declaration
public void GetDesignGlyphMetrics(short[] glyphIndices, int glyphCount, GlyphMetrics[] glyphMetrics, Bool isSideways)
Parameters
Type Name Description
short[] glyphIndices
int glyphCount
GlyphMetrics[] glyphMetrics
Bool isSideways