Common Desktop Environment: Internationalization Programmer's Guide

Text and TextField Widgets and Font Lists

The Text and TextField widgets display text information. To do so, they must be able to select the correct font in which to display the information. The Text and TextField widgets follow a set search pattern to find the correct font as follows:

  1. The widget searches the font list for an entry that is a font set and has a font list element tag of XmFONTLIST_DEFAULT_TAG. If a match is found, it uses that font list entry. No further searching occurs.

  2. The widget searches the font list for an entry that specifies a font set. It uses the first one found.

  3. If no font set is found, the widget uses the first font in the font list.

Using a font set ensures that there are glyphs for every character in the locale.