Windows apps
Collapse the table of content
Expand the table of content
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.

IDWriteTextAnalyzer2::GetGlyphOrientationTransform method

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


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

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.

transform [out]

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

Minimum supported client

Windows 8.1 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 R2 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Library

Dwrite.lib

DLL

Dwrite.dll

See also

IDWriteTextAnalyzer2

 

 

Show:
© 2017 Microsoft