Example: Font attributes
Let’sput thelasthalfdozenfontaltnbutcstogetherin anexample.Say we
wanttoselectanicefont—asmallLinePrinter- forthefootnotesinareport
we’vefinished.Let’smakeitoursecondaryfont,sincethebodyofourreport
is donein theprimaryfont.
We’ll go with the defaults for orientationand symbol set. But let’s be
specificabouttheotherattributes,andlet’sremembertoputtheminpriority
order.
Wedecideonamonospacedof 16.66charactersperinchandaheightofjust
sevenpoints(footnotesshouldlooksmallerthanourregulartext).To keep
it readable,weoptfortheordinaryuprightstyleandmediumweightin the
LinePrintertypeface.Our sequenceof individualcommandswouldlook
likethis:
<ESC>
)S OP
<ESC>
)S 16.66H
<ESC>
)S 7V
<ESC>
)S OS
<ESC>
)S OB
<ESC>
)S OT
Since these font attributesall start with the same )s command-category
prefix,let’sput themalltogetherin onccommand:
<ESC>
)S OP 16.66h 7V@ ObOT
TheBASICstatcmentwccouldsendto selectourdesiredfontwouldlook
likethis;
100 LPRINTCHR$(27);“)sOp16.66h7vOsObOT”
And assuming we have such a font in our printer, we‘d get a
font that looks like this sentence for our footnotes.
Underline
Underliningis printingfeature,nota fontattribute.
Youcan underlinein two ways:as a print feature,or with the– underline
character.If youbackspaceandusetheunderlinecharacter,however,you
oftenfindthe underlinedoesn’tcomeoutthe samelengthas yourtext.
The underlinecommandworks better. When you turn on the underline
80