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] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also