Packages
 In this topic

*Constructors

*Methods

*Fields

 

Packages   PreviousThis PackageNext
Package com.ms.fx   Previous This
Package
Next

 


Class txtRun

public class txtRun
{
  // Fields
  public int chars;
  public final static int EXTENDED_RUN;
  public int flags;
  public final static int HAS_TABS;
  public int idx;
  public txtRun next;
  public final static int RESET_X;
  public final static int VERT_ROTATED_RUN;

  // Constructors
  public txtRun();

  // Methods
  public int[] getGlyphIndices(int offs, int len);
}

This class manages text runs generated by the FxFormattedText class.

Note Formatted text holds runs of text built up every time the ensureNotDirty method of the FxFormattedText class is called. This formatting determines how the text is placed on the screen. The application may override these values by implementing the IFxTextCallback interface and manipulating the runs when the methods are called.

Constructors

txtRun

public txtRun();

Creates an empty text run.

Methods

getGlyphIndices

public int[] getGlyphIndices(int offs, int len);

Retrieves the glyph index values for the text run.

Return Value:

Returns Unicode values if the font does not support glyph indices.

ParameterDescription
offs The offset to use from the buffer in FxText.
len The length of the array.

Remarks:

This method enables you to access glyphs not represented in Unicode, such as combined characters in languages such as Hebrew and Arabic. It is also used for fonts with multiple representations of a glyph. Currently, this method returns null.

Fields

chars
The number of characters the run covers.
EXTENDED_RUN
Text run flag denoting an extended run. This flag is used by the fullTxtRun class.
flags
Text run flags, which may be EXTENDED_RUN, HAS_TABS, RESET_X, or VERT_ROTATED_RUN.
HAS_TABS
The text run flag denoting a text run that contains tabs.
idx
The index into the buffer held by the controlling FxFormattedText class.
next
A link to the next run in the list.
RESET_X
Text run flag that indicates the previous x is ignored and x is set to the origin.
VERT_ROTATED_RUN
Text run flag that indicates that non-CJK characters (those characters which are not in the range of Unicode Unified Ideographs) are drawn at 270 degrees. This is used in vertical writing.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.