IDWriteFontFace::GetDesignGlyphMetrics Method
Obtains ideal (resolution-independent) glyph metrics in font design units.
Syntax
virtual HRESULT GetDesignGlyphMetrics(
[in] const UINT16 * glyphIndices,
UINT32 glyphCount,
[out] DWRITE_GLYPH_METRICS * glyphMetrics,
BOOL isSideways
) = 0;
Parameter
glyphIndices [in]
An array of glyph indices for which to compute metrics. The array must contain at least as many elements as specified by glyphCount.glyphCount
The number of elements in the glyphIndices array.glyphMetrics [out]
When this method returns, contains an array of DWRITE_GLYPH_METRICS structures. glyphMetrics must be initialized with an empty buffer that contains at least as many elements as glyphCount. The metrics returned by this function are in font design units.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
Rückgabewert
Ist Methode erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.
Hinweise
Design glyph metrics are used for glyph positioning.
Anforderungen
Mindestens unterstützter Client |
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista |
Mindestens unterstützter Server |
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 |
Header |
Dwrite.h |
Bibliothek |
Dwrite.lib |
DLL |
Dwrite.dll |