Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IDWriteFontFace1::GetDesignGlyphAdvances method

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

Syntax


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

Parameters

glyphCount

Type: UINT32

The number of glyphs to retrieve advances for.

glyphIndices [in]

Type: const UINT16*

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

glyphAdvances [out]

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

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

Dwrite_1.h

Library

Dwrite_1.lib

DLL

Dwrite_1.dll

See also

IDWriteFontFace1

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.