IDWriteTextAnalyzer1.GetTextComplexity

<summary> Determines the complexity of text, and whether or not full script shaping needs to be called (GetGlyphs). </summary> <param name="fontFace">The font face to read.</param> <param name="textLength">Length of the text to check.</param> <param name="textString">The text to check for complexity. This string may be UTF-16, but any supplementary characters will be considered complex.</param> <param name="isTextSimple">If true, the text is simple, and the glyphIndices array will already have the nominal glyphs for you. Otherwise you need to call GetGlyphs to properly shape complex scripts and OpenType features. </param> <param name="textLengthRead">The length read of the text run with the same complexity, simple or complex. You may call again from that point onward.</param> <param name="glyphIndices">Optional glyph indices for the text. If the function returned that the text was simple, you already have the glyphs you need. Otherwise the glyph indices are not meaningful, and you should call shaping instead.</param> <remarks> Text is not simple if the characters are part of a script that has complex shaping requirements, require bidi analysis, combine with other characters, reside in the supplementary planes, or have glyphs which participate in standard OpenType features. The length returned will not split combining marks from their base characters. </remarks> <returns> Standard HRESULT error code. </returns>

interface IDWriteTextAnalyzer1
extern (Windows)
HRESULT
GetTextComplexity

Meta