IDWriteFontFace1.GetGdiCompatibleGlyphAdvances

<summary> Returns the pixel-aligned advances for a sequences of glyphs, the same as GetGdiCompatibleGlyphMetrics would return. </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 FALSE, the metrics are the same as GDI aliased text (DWRITE_MEASURING_MODE_GDI_CLASSIC). When TRUE, the metrics are the same as those measured by GDI using a font using CLEARTYPE_NATURAL_QUALITY (DWRITE_MEASURING_MODE_GDI_NATURAL).</param> <param name="isSideways">Retrieve the glyph's vertical advances rather than horizontal advances.</param> <param name="glyphCount">Total glyphs to retrieve adjustments for.</param> <param name="glyphIndices">Array of glyph id's to retrieve advances.</param> <param name="glyphAdvances">Returned advances in font design units for each glyph.</param> <remarks> This is equivalent to calling GetGdiCompatibleGlyphMetrics and using only the advance width/height. Like GetGdiCompatibleGlyphMetrics, these are in design units, meaning they must be scaled down by

More...
interface IDWriteFontFace1
extern (Windows)
HRESULT
GetGdiCompatibleGlyphAdvances
(
FLOAT emSize
,,,,,
UINT32 glyphCount
,
const(UINT16)* glyphIndices
,
)

Detailed Description

DWRITE FONT METRICS

:designUnitsPerEm. </remarks> <returns> Standard HRESULT error code. </returns>

Meta