Note: The last position pushed onto the list will always be the first one
popped back later.
4.5 CONTROLLING FONTS4.5.1 Font selection
The Star LaserPrinter 4111letsyou define and select fonts three ways: as
primary and secondary fonts, or by font identification number, or by
description.We’ll look atthe firsttwo ways now, and explainselecting afont
by itsattributes alittle further on.
Howeveryou choose torefer to fonts, remember that afontmust beavailable
beforeyou select it. So if you want to select acartridge or downloaded font,
you first have to put in the cartridge or download the font.
4.5.2 Selecting primary or secondary fonts
Ofthe three selection methods, you will save themost programming time by
shiftingback and forth between primary and secondary fonts. That’s coun-
terbalanced, though, by the fact that you often need more than two fonts.
Typically, you use primary and secondary fonts to flip back and forth
betweentwo different symbol sets for example IBM symbolsets 1and 2.
Youcan designate any two fonts,whether internal, cartridgeor downloaded,
as primary and secondary.
Theway you show you’retalking aboutaprimary font inan Escape sequence
is to follow the <ESC> symbol with aleftparenthesis. For example,
<ESC> (S 10H
means you want your primary font pitched at ten characters to the inch.
Typing arightparenthesis instead means you are referring to the secondary
font:
<ESC> )S 10H
You define afont as primary or secondary as you select it. To make afont
yourprimary or secondary font, you use font-description Escape sequences
such as thosejust above, specifying the attributes you want.
61