[]
Obtains glyph metrics in font design units with the return values compatible with what GDI would produce.
public GlyphMetrics[] GetGdiCompatibleGlyphMetrics(float fontSize, float pixelsPerDip, Matrix3x2? transform, bool useGdiNatural, short[] glyphIndices, bool isSideways)
Public Function GetGdiCompatibleGlyphMetrics(fontSize As Single, pixelsPerDip As Single, transform As Matrix3x2?, useGdiNatural As Boolean, glyphIndices As Short(), isSideways As Boolean) As GlyphMetrics()
| 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. |
| Type | Description |
|---|---|
| GlyphMetrics[] | An array of C1.Win.DX.DirectWrite.GlyphMetrics structures filled by this function. The metrics are in font design units. |
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)
public void GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix3x2? transform, Bool useGdiNatural, short[] glyphIndices, int glyphCount, GlyphMetrics[] glyphMetrics, Bool isSideways)
Public Sub GetGdiCompatibleGlyphMetrics(emSize As Single, pixelsPerDip As Single, transform As Matrix3x2?, useGdiNatural As Bool, glyphIndices As Short(), glyphCount As Integer, glyphMetrics As GlyphMetrics(), isSideways As Bool)
| Type | Name | Description |
|---|---|---|
| float | emSize | |
| float | pixelsPerDip | |
| Matrix3x2? | transform | |
| Bool | useGdiNatural | |
| short[] | glyphIndices | |
| int | glyphCount | |
| GlyphMetrics[] | glyphMetrics | |
| Bool | isSideways |