Procedure

To place a character on the page, TopLeaf locates the appropriate font by using the typeface and style selected by the mappings. These are selected on the Font tab or by using the <font-properties> command.

The available typefaces are determined by the font configuration.

In some cases it is not possible to define a specific typeface that will be appropriate in all circumstances, since most fonts only contain a limited number of characters. For example, it may be necessary to switch to a different typeface when rendering Japanese data. To allow for this, a selection scheme can be created to determine the appropriate typeface.

If the font selected does not contain the character to be rendered, a character map can be used to select an alternate character and/or typeface. The map can also indicate that a particular character should always be rendered with a specific typeface, regardless of the font selected by the mappings.