XMConvertFloatToHalfStream
XMConvertHalfToFloatStream
XMMatrixDecompose
XMPlaneTransformStream
XMVector2TransformCoordStream
XMVector2TransformNormalStream
XMVector2TransformStream
XMVector3ProjectStream
XMVector3TransformCoordStream
XMVector3TransformNormalStream
XMVector3TransformStream
XMVector3UnprojectStream
XMVector4TransformStream
Expand Minimize

IDWriteTextAnalyzer interface

Analyzes various text properties for complex script processing such as bidirectional (bidi) support for languages like Arabic, determination of line break opportunities, glyph placement, and number substitution.

Members

The IDWriteTextAnalyzer interface inherits from the IUnknown interface. IDWriteTextAnalyzer also has these types of members:

Methods

The IDWriteTextAnalyzer interface has these methods.

MethodDescription
AnalyzeBidi

Analyzes a text range for script directionality, reading attributes from the source and reporting levels to the sink callback SetBidiLevel.

AnalyzeLineBreakpoints

Analyzes a text range for potential breakpoint opportunities, reading attributes from the source and reporting breakpoint opportunities to the sink callback SetLineBreakpoints.

AnalyzeNumberSubstitution

Analyzes a text range for spans where number substitution is applicable, reading attributes from the source and reporting substitutable ranges to the sink callback SetNumberSubstitution.

AnalyzeScript

Analyzes a text range for script boundaries, reading text attributes from the source and reporting the Unicode script ID to the sink callback SetScript.

GetGdiCompatibleGlyphPlacements

Place glyphs output from the GetGlyphs method according to the font and the writing system's rendering rules.

GetGlyphPlacements

Places glyphs output from the GetGlyphs method according to the font and the writing system's rendering rules.

GetGlyphs

Parses the input text string and maps it to the set of glyphs and associated glyph data according to the font and the writing system's rendering rules.

 

Examples

The following code example shows how a text analyzer object is created.


    IDWriteTextAnalyzer* pTextAnalyzer = NULL;
    if (SUCCEEDED(hr))
    {
        hr = pDWriteFactory->CreateTextAnalyzer(&pTextAnalyzer);
    }


Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

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

Header

Dwrite.h

Library

Dwrite.lib

DLL

Dwrite.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft