The function gSetCharFontName() is used to select any of the available windows fonts on the current device by name, the complete list being obtained through the routine gEnqFontNameList().
When selecting a font by name, using gSetCharFontName(), the function searches through the available hardware and software font names depending on the character mode. It will then return one of three values. The value 2 if an exact match has been found, 1 if a near match has been found and 0 if no match has been found, in which case the default font (0) will be selected.
The routine gSetFontWeight() can be used to alter the weight of all fonts.
The list of hardware fonts that are available on the current output device can be obtained through the gEnqHardFontList() routine. If the font requested is not available, a default Courier font is used.
Character codes greater than 128 may be affected by the current character set as specified by the routine gSetCharSet(). This routine allows access to certain langauge character sets where available on the current output device.