[]
Obtains ideal (resolution-independent) glyph metrics in font design units.
public GlyphMetrics[] GetDesignGlyphMetrics(short[] glyphIndices, bool isSideways)
| 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 |
| Type | Description |
|---|---|
| GlyphMetrics[] | an array of GlyphMetrics structures. |
Design glyph metrics are used for glyph positioning.
HRESULT IDWriteFontFace::GetDesignGlyphMetrics([In, Buffer] const unsigned short* glyphIndices,[In] unsigned int glyphCount,[Out, Buffer] DWRITE_GLYPH_METRICS* glyphMetrics,[In] BOOL isSideways)
public void GetDesignGlyphMetrics(short[] glyphIndices, int glyphCount, GlyphMetrics[] glyphMetrics, Bool isSideways)
| Type | Name | Description |
|---|---|---|
| short[] | glyphIndices | |
| int | glyphCount | |
| GlyphMetrics[] | glyphMetrics | |
| Bool | isSideways |