IDWriteFontFace.GetGdiCompatibleGlyphMetrics

<summary> Obtains glyph metrics in font design units with the return values compatible with what GDI would produce. Glyphs metrics are used for positioning of individual glyphs. </summary> <param name="emSize">Logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch.</param> <param name="pixelsPerDip">Number of physical pixels per DIP. For example, if the DPI of the rendering surface is 96 this value is 1.0f. If the DPI is 120, this value is 120.0f/96.</param> <param name="transform">Optional transform applied to the glyphs and their positions. This transform is applied after the scaling specified by the font size and pixelsPerDip.</param> <param name="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. </param> <param name="glyphIndices">An array of glyph indices to compute the metrics for.</param> <param name="glyphCount">The number of elements in the glyphIndices array.</param> <param name="glyphMetrics">Array of DWRITE_GLYPH_METRICS structures filled by this function. The metrics returned by this function are in font design units.</param> <param name="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.</param> <returns> Standard HRESULT error code. If any of the input glyph indices are outside of the valid glyph index range for the current font face, E_INVALIDARG will be returned. </returns>

interface IDWriteFontFace
extern (Windows)
HRESULT
GetGdiCompatibleGlyphMetrics

Meta