IDWriteFontFace1::GetDesignGlyphAdvances method (dwrite_1.h)

Retrieves the advances in design units for a sequences of glyphs.

Syntax

HRESULT GetDesignGlyphAdvances(
        UINT32       glyphCount,
  [in]  UINT16 const *glyphIndices,
  [out] INT32        *glyphAdvances,
        BOOL         isSideways
);

Parameters

glyphCount

Type: UINT32

The number of glyphs to retrieve advances for.

[in] glyphIndices

Type: const UINT16*

An array of glyph id's to retrieve advances for.

[out] glyphAdvances

Type: INT32*

The returned advances in font design units for each glyph.

isSideways

Type: BOOL

Retrieve the glyph's vertical advance height rather than horizontal advance widths.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This is equivalent to calling GetGlyphMetrics and using only the advance width and height.

Requirements

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header dwrite_1.h
Library Dwrite_1.lib
DLL Dwrite_1.dll

See also

IDWriteFontFace1