Syntax
[C/C++:]
void gSetCharFont(int font);
[F90:]
subroutine gSetCharFont(font)
integer, intent(in) :: font
Arguments
font
Font number
Default Font
| Font No. |
Defined F90/C Constant |
Font Name |
Software Fonts
| Font No. |
Defined F90/C Constant |
Font Name |
| = 1, |
GRoman_Simplex |
Roman Simplex |
| = 2, |
GRoman_Duplex |
Roman Duplex |
| = 3, |
GRoman_Complex |
Roman Complex |
| = 4, |
GRoman_Triplex |
Roman Triplex |
| = 5, |
GItalic_Complex |
Italic Complex |
| = 6, |
GItalic_Triplex |
Italic Triplex |
| = 7, |
GScript_Simplex |
Script Simplex |
| = 8, |
GScript_Complex |
Script Complex |
| = 9, |
GGreek_Simplex |
Greek Simplex |
| = 10, |
GGreek_Complex |
Greek Complex |
| = 11, |
GGothic_English |
Gothic English |
| = 12, |
GGothic_German |
Gothic German |
| = 13, |
GGothic_Italian |
Gothic Italian |
| = 14, |
GCyrillic_Complex |
Cyrillic Complex |
| = 15, |
GSwiss_Solid * |
Swiss Solid |
| = 16, |
GDutch_Solid * |
Dutch Solid |
| = 18, |
GComputer * |
Computer |
| = 21, |
GGreek_Font_1 |
Greek Font 1 |
| = 22, |
GGreek_Font_2 |
Greek Font 2 |
| = 23, |
GGreek_Font_3 |
Greek Font 3 |
| = 24, |
GGreek_Font_4 |
Greek Font 4 |
| = 25, |
GGreek_Font_5 |
Greek Font 5 |
Symbol Fonts
| Font No. |
Defined F90/C Constant |
Font Name |
| = 70, |
GMaths_Symbols *  (DIN 6776) |
Maths Symbols |
| = 71, |
GHershey_Maths_Symbols |
Hershey Maths Symbols |
| = 72, |
GHershey_Symbols_1 |
Hershey Symbols 1 |
| = 73, |
GHershey_Symbols_2 |
Hershey Symbols 2 |
| = 74, |
GSymbol1_normal * |
Symbol1 normal |
| = 75, |
GSymbol1_thick * |
Symbol1 thick |
| = 76, |
GSymbol1_filled * |
Symbol1 filled |
| = 77, |
GSymbol2_normal * |
Symbol2 normal |
| = 78, |
GSymbol2_filled * |
Symbol2 filled |
| = 79, |
GGINO_Dingbats * |
GINO Dingbats |
Hardware and Software Fonts
| Font No. |
Defined F90/C Constant |
Font Name |
| = 100, |
GCourier  [Hardware only] |
Courier |
| = 101, |
GHelvetica |
Helvetica |
| = 103, |
GAvant_Garde |
Avant Garde |
| = 104, |
GLublin_Graph |
Lublin Graph |
| = 105, |
GNew_Century_Schoolbook |
New Century Schoolbook |
| = 106, |
GSouvenir |
Souvenir |
| = 107, |
GPalatino |
Palatino |
| = 108, |
GChancery |
Chancery |
All fonts are proportional except 0 and 100
*=Polygon Font
Description
The routine gSetCharFont() sets the current software or printer-specific character font to be used by all subsequent character and string output routines.
The routine gSetCharFont() can be used to select a registered hardware or software font by number. A list of the registered fonts is shown above, with their corresponding number, defined constant name and font name string, which can also be used in a call to gSetCharFontName(). A change to the current font number can also be selected using the *Fnnn escape sequence within the character string routines.
Font 0 is the default font and is always available in software and on most devices in hardware as well. It is always a fixed pitch font.
Fonts 1 to 69 are reserved for software fonts of which the ones listed are currently available in the GINO font file. They are all proportional fonts.
Fonts 70 to 99 are reserved for symbol fonts of which the ones listed are currently available in the GINO font file. These fonts are primarily provided for use with the gDrawMarker() routine. Additional hardware symbol fonts may be available on the current device.
Fonts 100 to 199 are reserved for hardware fonts of which the ones listed above are currently registered. Registered fonts are increasingly available on a number of graphics devices but in some cases only certain sizes are provided. With registered fonts (101-108) a software polygon font is also provided in the GINO-F font file so that if software output is requested or the currently selected device does not support this font, the appearance of text matches approximately that of the requested font. Additional (registered) hardware fonts may be provided on the current output device and users should consult the relevant Appendix B documentation for further information on these. There is no software form of the additional registered fonts.
The selection of hardware or software font is determined by the current setting of character attributes. Where software fonts are used gSetFontForm() can be used to simplify their representation during program development.
If the length of a string is required for a proportional font it is recommended that the routine gReturnStrInfo() is used as it cannot be calculated by multiplying the number of characters by the character width. Alternatively, gSetFontSpacing() can be used to force any font to be output as if it were fixed pitch.
The routine gSetFontFillStyle() can be used to select different font fill styles (e.g. outline and hatch fill) for hardware fonts and software fonts marked with a *. The routine gSetFontWeight() can be used to alter the weight of all fonts.
See Also
gSetCharFont UsageDevice DriversgDrawMarkergEnqCharFontNamegEnqHardFontListgSetCharFontNamegSetFontFormgSetFontSpacinggSetFontFillStylegSetFontWeightgReturnStrInfo