IDWriteTextAnalysisSink::SetScriptAnalysis method (dwrite.h)

Reports script analysis for the specified text range.

Syntax

HRESULT SetScriptAnalysis(
  UINT32                       textPosition,
  UINT32                       textLength,
  DWRITE_SCRIPT_ANALYSIS const *scriptAnalysis
);

Parameters

textPosition

Type: UINT32

The starting position from which to report.

textLength

Type: UINT32

The number of UTF16 units of the reported range.

scriptAnalysis

Type: const DWRITE_SCRIPT_ANALYSIS*

A pointer to a structure that contains a zero-based index representation of a writing system script and a value indicating whether additional shaping of text is required.

Return value

Type: HRESULT

A successful code or error code to stop analysis.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header dwrite.h
Library Dwrite.lib
DLL Dwrite.dll

See also

IDWriteTextAnalysisSink