IDWriteFontFace1::GetVerticalGlyphVariants method
Retrieves the vertical forms of the nominal glyphs retrieved from GetGlyphIndices.
Syntax
HRESULT GetVerticalGlyphVariants( UINT32 glyphCount, [in] const UINT16 *nominalGlyphIndices, [out] UINT16 *verticalGlyphIndices );
Parameters
- glyphCount
-
Type: UINT32
The number of glyphs to retrieve.
- nominalGlyphIndices [in]
-
Type: const UINT16*
Original glyph indices from cmap.
- verticalGlyphIndices [out]
-
Type: UINT16*
The vertical form of glyph indices.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The retrieval uses the font's 'vert' table. This is used in CJK vertical layout so the correct characters are shown.
Call GetGlyphIndices to get the nominal glyph indices, followed by calling this to remap the to the substituted forms, when the run is sideways, and the font has vertical glyph variants. See HasVerticalGlyphVariants for more info.
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