Purpose |
Select a font for the GRAPHIC PRINT, GRAPHIC INPUT, and GRAPHIC LINE INPUT statements. GRAPHIC FONT has been superceded by the GRAPHIC SET FONT statement, although GRAPHIC FONT remains supported for a limited period. Existing code should be converted to the new syntax as soon as possible. | ||||||||||
Syntax |
GRAPHIC FONT fontname$ [,points&, style&] | ||||||||||
fontname$ |
The name of the font. | ||||||||||
points& |
The size of the font, in points. | ||||||||||
style& |
Font style attribute. Any of the following values can be combined or used alone:
For example, a style& of 3 specifies a combination of both bold and italic attributes. | ||||||||||
Remarks |
If the requested font is not available on the computer, Windows will search for a substitute font, which is similar to the attributes specified (CharSet, Font Family, etc.). You may use the value zero (0) for the numeric parameters to designate that the compiler should use the default for that item. If parameter(s) are missing, the compiler substitutes the default value for all remaining parameters. Prior to any graphical operations, the graphic target must first be selected with GRAPHIC ATTACH. If no GRAPHIC FONT statement is executed, the default font is MS Sans Serif, 8 point, with no style attributes. | ||||||||||
See Also |
FONT NEW, GRAPHIC ATTACH, GRAPHIC CHR SIZE, GRAPHIC INPUT, GRAPHIC LINE INPUT, GRAPHIC PRINT, GRAPHIC SET FONT, GRAPHIC TEXT SIZE | ||||||||||
Example |
' Set the font for the selected graphic window to ' Times New Roman, 18 points, bold + italic + underline = (1+2+4). GRAPHIC FONT "Times New Roman", 18, 7 |