Example: Font attributes
Let’s putthe last half dozen font attributes together in an example. Say we
want to select anice fontasmall Line Printer for the footnotes in a
reportwe’ve finished. Let’smake it oursecondary font, since’thebodyofour
report isdone in the primary font.
We’llgo with thedefaults fororientation andsymbol set.Butlet’s bespecific
aboutthe other attributes, and let’s remember to put them in priority order.
Wedecide on amonospaced of 16.66 charactersper inch andaheight ofjust
sevenpoints (footnotes should look smaller than our regular text). To keep
itreadable, we opt for the ordinary upright style and medium weight in the
LinePrinter typeface.Our sequenceof individualcommandswould look like
this:
<ESC> )S OP
<ESC> )S 16.66H
<ESC> )S 8.5V
<ESC> )S OS
<ESC> )S OB
<ESC> )S OT
Since these font attributes all start with the same )s command-category
prefix, let put them alltogether in one command:
<ESC> )S op 16.66h8.5v os Ob OT
The BASIC statement we could send to select our desired font would look
like this:
100 LPRINT CHR$ (27);“)sopl 6. 66h8.5vOsObOT”
And assuning we have such afont in our printer, we’d get afont that looks
1ike this sentence for our footnotes.
73