GRAPHIC FONT
You should no longer use this command because it may be discontinued in a future release. To use the newer SQR functionality, use ALTER-PRINTER and DECLARE-PRINTER to set the FONT, FONT-TYPE, POINT-SIZE, and PITCH.
Syntax
Use this syntax:
GRAPHIC ()
FONT { font_number_int_lit|_var }
[point_size_int_lit|_var[{1|0}
[pitch_int_lit|_var]]]
Description
Changes a font.
Parameters
| Field or Control | Description |
|---|---|
|
font_number |
For HP LaserJet printers, the specified font must be installed in the printer. For PostScript printers, the font must be defined in the postscri.str file. |
| Field or Control | Description |
|---|---|
|
point_size |
If point_size is omitted, the size from the most recent DECLARE-PRINTER or GRAPHIC FONT command is used. |
| Field or Control | Description |
|---|---|
|
{1|0} |
This argument is for HP LaserJet printers only. It is needed only if you are using a font that SQR does recognize. (See the fonts that are listed as being available for HP LaserJet printers in SQR in the DECLARE-PRINTER section of the topic “SQR Command Reference.”) A 1 indicates a proportional font, and a 0 indicates a fixed-pitch font. The default is proportional. |
| Field or Control | Description |
|---|---|
|
pitch |
If the specified font is fixed pitch, also indicate the pitch in characters per inch. |
Example
For example:
graphic () font 23 8.5 ! Century Schoolbook, 8.5 points
graphic () font 6 12 0 10 ! Letter Gothic, 12 points,
! fixed, 10 characters per inch
graphic () font :#font_number :#point_size
See ALTER-PRINTER and DECLARE-PRINTER for information about setting and changing the FONT, FONT-TYPE, POINT-SIZE, and PITCH.