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.
Mitglieder
IDWriteTextAnalyzerSchnittstelle erbt von der IUnknown-Schnittstelle. IDWriteTextAnalyzer umfasst auch die folgenden Typen von Mitgliedern:
- Methoden
Methoden
IDWriteTextAnalyzerSchnittstelle umfasst die folgenden Methoden.
Methode | Beschreibung |
---|---|
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. |
Beispiele
The following code example shows how a text analyzer object is created.
IDWriteTextAnalyzer* pTextAnalyzer = NULL;
if (SUCCEEDED(hr))
{
hr = pDWriteFactory->CreateTextAnalyzer(&pTextAnalyzer);
}
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 |