Package com.ms.fx |
![]() Previous |
![]() Contents |
![]() Index |
![]() Next |
public class txtRun { // Fields public final static int HAS_TABS; public final static int EXTENDED_RUN; public final static int RESET_X; public int flags; public int idx; public int chars; public txtRun next; // Constructors public txtRun(); // Methods public int[] getGlyphIndices(int offs, int len); }
A class that manages text runs generated by FxFormattedText.
Formatted text holds runs of text built up everytime the ensureNotDirty(); method of the FxFormattedText class is called. This formatting determines how the text is placed on screen. The application may override these values by implementing the IFxTextCallback interface and manipulating the runs when the methods are called.
public txtRun();Creates an empty text run.
public int[] getGlyphIndices(int offs, int len);Retrieves the glyph index values for the text run.
Return Value:
If the font does not support glyph indices, then the unicode values will be returned.
Parameter Description offs The offest to use from the buffer in FxText. len The length of the array. Remarks:
This method allows you to access glyphs not represented in Unicode, such as combined characters in languages like Hebrew or Arabic. It is also used for fonts with multiple representations of a glyph. Currently returns null.
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.