## Display Device Driver Reference for OS/2

[prev][next][parent][TOC]

### Gaiji Fonts Support

Gaiji means the font image that the user defines. Sometimes it is referred to as "User Fonts" or "User Defined Fonts."

The Gaiji font support in the PM display driver is actually handled by the font drivers. This is because it is easy to make the font typeface correspond to the Gaiji font resource in the font driver. The font driver has information on handling Gaiji fonts.

The font driver provides the following general functions:

Returning SBCS and DBCS font metrics information

Supplying SBCS font images

Supplying DBCS font images excluding Gaiji

Supplying DBCS Gaiji font images

By expanding the font driver's functions, one PM font can have multiple font data resources. Since Gaiji support is handled by the font driver, it picks up these expanded functions. In OS/2 2.0, the font driver returns the Gaiji font using the following rule: The standard Gaiji data is Gaiji fonts resources for the system default font in OS/2 fullscreen mode (16-dot and 24-dot fonts).

Gaiji font data is handled as follows:

If there is private Gaiji font data, the font driver returns private Gaiji font data.

If there is a standard same-size Gaiji font data, the font driver returns standard Gaiji font data.

If there is standard different-size font data, the font driver returns standard Gaiji font data after scaling.

If there is no Gaiji font data, the font driver returns the default character (double byte space character).