IDWriteTextAnalyzer::AnalyzeScript Method
Analyzes a text range for script boundaries, reading text attributes from the source and reporting the Unicode script ID to the sink callback SetScript.
Syntax
virtual HRESULT AnalyzeScript(
IDWriteTextAnalysisSource * analysisSource,
UINT32 textPosition,
UINT32 textLength,
IDWriteTextAnalysisSink * analysisSink
) = 0;
Parameter
analysisSource
A pointer to the source object to analyze.textPosition
The starting text position within the source object.textLength
The text length to analyze.analysisSink
A pointer to the sink callback object that receives the text analysis.
Rückgabewert
Ist Methode erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.
Anforderungen
Mindestens unterstützter Client |
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista |
Mindestens unterstützter Server |
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 |
Header |
Dwrite.h |
Bibliothek |
Dwrite.lib |
DLL |
Dwrite.dll |