Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Dwrite_1.h

Library

Dwrite_1.lib

DLL

Dwrite_1.dll

See also

IDWriteFontFace1

 

 

Community Additions

Show:
© 2014 Microsoft