IDWriteTextAnalyzer2::GetGlyphOrientationTransform method (dwrite_2.h)

Returns 2x3 transform matrix for the respective angle to draw the glyph run.

Extends IDWriteTextAnalyzer1::GetGlyphOrientationTransform to pass valid values for the baseline origin rather than zeroes.

Syntax

HRESULT GetGlyphOrientationTransform(
        DWRITE_GLYPH_ORIENTATION_ANGLE glyphOrientationAngle,
        BOOL                           isSideways,
        FLOAT                          originX,
        FLOAT                          originY,
  [out] DWRITE_MATRIX                  *transform
);

Parameters

glyphOrientationAngle

Type: DWRITE_GLYPH_ORIENTATION_ANGLE

A DWRITE_GLYPH_ORIENTATION_ANGLE-typed value that specifies the angle that was reported into IDWriteTextAnalysisSink1::SetGlyphOrientation.

isSideways

Type: BOOL

Whether the run's glyphs are sideways or not.

originX

Type: FLOAT

The X value of the baseline origin.

originY

Type: FLOAT

The Y value of the baseline origin.

[out] transform

Type: DWRITE_MATRIX*

Returned transform.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 R2 [desktop apps | UWP apps]
Target Platform Windows
Header dwrite_2.h
Library Dwrite.lib
DLL Dwrite.dll

See also

IDWriteTextAnalyzer2