Stock FontsWindows includes six stock fonts that are always available. The fg_fontload() function specifies which stock font fg_print() uses for displaying strings. The stock font identifiers and their numeric equivalents are: OEM_FIXED_FONT (10) ANSI_FIXED_FONT (11) ANSI_VAR_FONT (12) SYSTEM_FONT (13) DEVICE_DEFAULT_FONT (14) SYSTEM_FIXED_FONT (16) Passing one of these identifiers or its numeric equivalent to fg_fontload() makes that font the current font, meaning fg_print() will use it for displaying strings. To select the system font, for example, call fg_fontload(13) or fg_fontload(SYSTEM_FONT). By default, fg_print() uses the OEM_FIXED_FONT because this font most closely resembles the BIOS font used Fastgraph for DOS. We'll present an example program that uses fg_fontload() in the next section.
|
 
copyright 2001 Ted Gruber Software, Inc.