IDWriteTextAnalysisSource1::GetVerticalGlyphOrientation method (dwrite_1.h)

Used by the text analyzer to obtain the desired glyph orientation and resolved bidi level.

Syntax

HRESULT GetVerticalGlyphOrientation(
        UINT32                            textPosition,
  [out] UINT32                            *textLength,
  [out] DWRITE_VERTICAL_GLYPH_ORIENTATION *glyphOrientation,
  [out] UINT8                             *bidiLevel
);

Parameters

textPosition

Type: UINT32

The text position.

[out] textLength

Type: UINT32*

A pointer to the text length.

[out] glyphOrientation

Type: DWRITE_VERTICAL_GLYPH_ORIENTATION*

A DWRITE_VERTICAL_GLYPH_ORIENTATION-typed value that specifies the desired kind of glyph orientation for the text.

[out] bidiLevel

Type: UINT8*

A pointer to the resolved bidi level.

Return value

Type: HRESULT

Returning an error will abort the analysis.

Remarks

The text analyzer calls back to this to get the desired glyph orientation and resolved bidi level, which it uses along with the script properties of the text to determine the actual orientation of each character, which it reports back to the client via the sink SetGlyphOrientation method.

Requirements

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header dwrite_1.h
Library Dwrite.lib
DLL Dwrite.dll

See also

IDWriteTextAnalysisSource1