GRAPHIC FONT statement

Purpose

Select a font for the GRAPHIC PRINT statement.

Syntax

GRAPHIC FONT fontname$, points&, style&

Remarks

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 normal style.  If the requested font is not available on the computer, Windows will normally substitute another font, which may have similar attributes.

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:

0

normal

1

bold

2

italic

4

underline

8

strikeout

For example, a style& of 3 specifies a combination of both bold and italic attributes.

See also

GRAPHIC ATTACH, GRAPHIC CHR SIZE, GRAPHIC PRINT, 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