XPRINT FONT statement

Purpose

Select a font to be used by the XPRINT statement.

Syntax

XPRINT FONT fontname$, points&, style&

Remarks

A host printer must first be connected with XPRINT ATTACH.  If no XPRINT FONT statement is executed, the default font is Courier New with no style attributes.  If XPRINT FONT is unsuccessful, an error is generated.  If the requested font is not available on the computer, Windows will normally substitute another font, which may have similar attributes.

fontname$

Name of the font.

points&

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& value of 3 specifies a combination of both bold and italic attributes.

See also

XPRINT, XPRINT ATTACH, XPRINT CHR SIZE, XPRINT TEXT SIZE

Example

' Set the font for the host printer

' to Times New Roman, 18 points,

‘ bold + italic + underline (1+2+4).

XPRINT FONT "Times New Roman", 18, 7