Star Micronics 8111 Printer User Manual


 
making it the current print position.
When would you want to save and restore print positions this way?
Whenever you need to interruptwhat you’re printing now to stick something
special onto the page. This is most handy when you need to jump from text
to graphics and back.
Say you’ve written one routine that puts the page number in the same place
on every page, and another that under certain circumstances prints two heavy
lines. You print merrily along until you have to print the lines. You then push
the current print position to execute the line-printing routine.
But part way through that you hit the page-number spot. So you push the print
position again and run the page-number routine. Then you can pop the print
position to print the second line. And when that’s done you pop it again to
return to printing text.
As you might suspect, this can involve fairly complicated programming,
typically using the macro commands described later in this chapter.
To push or pop a print position you send this command:
<ESC> &f II S
For n you enter 0 to push (save) the current print position,
or 1 to pop (restore) the last position saved off the list.
Note:
The last position pushed onto the list will always be the first one
popped back later.
CONTROLLING FONTS
Font selection
The LaserJet III emulation lets you define and select fonts three ways: as
primary and secondary fonts, or by font identification number, or by
description. We’ll look at the first two.ways now, and explain selecting a font
by its attributes a little further on.
However you choose to refer to fonts, remember that a font must be available
before you select it. So if you want to select a cartridge or downloaded font,
you first have to put in the cartridge or download the font.
66