Star Micronics 4111 User Manual

Specifications and Main Features

  • Printing Speed: can print up to 4 pages in a minute
  • Resolution: has an accuracy of up to about 90,000 dots per square inch.
  • Memory: has a standard RAM of 1MB with a possibility of being expanded upto 2MB.
  • Fonts:
  • Has both internal and built in fonts THe CG Times, Univers, Courier and Line Printers.
  • A mixture of bit-mapped fonts and scalable ones is present.
  • Modern cartridges and downloadable cartridges and fonts are also supported.
  • Communication Interfaces: Available facilitates are Serial and Parallel interfaces.
  • Emulation: can emulate commands written by LaserJet III of Hewlett Packard.
  • Paper Types Supported: Could use plain paper, labels, envelops and transparencies
  • Control Panel: Has a friendly style easy to use with visual display
  • Dimensions: Has a small structure ideal for desktop
  • Power Supply: compatible with electricity bu most standard outlets
  • Compatibility: Compatible with MS-DOS, Windows and lots of other Desktop Publishing applications

Frequently Asked Questions

Q1: What is the maximum printing speed of the Star LaserPrinter 411?

A1: The device has a capability of printing up to 4 pages in a minute.

Q2: Various font types that Star LaserPrinter 411 can use?

A2: The provide built in fonts but also supports modern downloads and cartridges.

Q3: Methods of connecting a printer with a personal computer?

A3: Has the ability to connect through serial and parallel interfaces.

Q4: Is it allowed to print on envelopes using this printer?

A4: Yes, the printer is capable of printing on envelopes and other papers.

Q5: What is the default memory capacity of the printer and is it upgradeable?

A5: The printer contains a base memory of 1MB, but this can be modified to a maximum of 2MB with the appropriate settings.

Q6: Is there a possibility that this printer can act like another model printer?

A6: Certainly. It accepts command codes that are used with the Hewlett-Packard LaserJet III printers.

Q7: Is there an interface which is uncomplicated enough to enable even a not so experienced user to operate the printer quickly?

A7: Yes, for simpler use of the printer, a control panel with a screen has been included.

Q8: what is the limit of the resolution that the printer is able to give to the prints?

A8: The limit of the resolution is within 90,000 dots per square inch for the Star LaserPrinter 411 during the printing of the pictures.

User Manual

APPLICA TIONS MANUAL
80821885
Trademark Acknowledgements
LaserPrinter 4111:Star Micronics Co,, Ltd. PageMaker: AldusCorporation Applesoft: Apple Computer Inc. Bitstream: Bitstream Inc. Canon:Canon Inc. HP, LaserJet:Hewlett-Packard Company LaserControl:Insight Development Inc. IBM PC: InternationalBusiness MachinesCorp. Century Schoolbook: Linotype Corporation Lotus 1-2-3:Lotus DevelopmentCorporation
MS-DOS, Microsoft BASIC, Windows, Word: MicrosoftCorporation MultiMate: Multimate International WordPerfect:WordPerfect Corporation Ventura Publisher: XeroxCorporation
NOTICE
All rights reserved. Reproduction of any part of this manual in any form whatsoever without
STAR’s express permission is forbidden,
The contents of this manualare subject to cbange without notice
Alleffortshave been madetoensure the accuracyofthecontentsofthis manualatthetimeofpress.
However,sbouldanyerrorsbedetected, STAR would greatly appreciate being informed of them.
. The above notwithstanding, STAR can assume no responsibility for any errors inthis manual
@Copyright 1992Star Micronics Co,, Ltd
I

PREFACE

About this manual
This StarLu.~erPrinter4111Application.~Manual gives you the information
you need to program the Star Micronics LaserPrinter 4111.
Why would you read this book? Most people using a laser printer just run softwarepackageswithbuilt-inprinter drivers, which look after everything theircomputers send their printers.But many of us— smallbusiness people and home computer users, not to mention the wizards who write those softwarepackages— want tobenefit fromall thenew featuresoffered byour printers.
Doyouwantcompletecontrol overthecharacters andimagesyou print?This manual provides the software help you need to get the most from your
LaserPrinter 4111. Though this Applications Manual is really intended for intermediate to
advanced computer users, we’ve tried to accommodate relative novicestoo.
The information is organized so you can walk through the general theory
underlying printer programming before dancing into specific details. It makessense,therefore, toread thefirstthreechaptersbeforejumping intothe middle.
There’s agoodreason to readeach chapter from itsstarttoo. People learning how to use a new printer often find the terminology a barrier. So instead of burying what may be new jargon in a Glossary at the back, we define each newterm thefirst timeitappears.The whole firstpart ofthechapter on fonts, forexample, defines different aspects of afhzt (acollection of characters of the same size and style).
I
What’sin this manual?
In “Getting to Know Your Star LaserPrinter 4111”we provide a listof the features that make this a splendid printer, to help you choose which features you want to exploit. There’s a bit on how laser printers work, inside and out. The chapter then explains software in general terms, including how to write control and Escape commands to make those features work.
‘&ControllingYour Printer” examines the parameters you give the Star LaserPrinter 4111to direct precisely how you want itto behave. These let you control theprinter, manage page formats, and specify what you want printed.
Formostofus,the“Fonts”chapter willbeuseful:how tousethefontsbuilt intotheLaserPrinter 4111,plusthose that come on cartridges or computer disks.
You may look at chapters 4 and 5, which cover Star LaserPrinter 4111 commands. Your LaserPrinter 4111emufates (imitates) Hewlett-Packard LaserJet 111by accepting the same commands they do.
If you want to write or modify a program that uses the Hewlett-Packard LaserJet III, chapters 4 and 5 show how your Star LaserPrinter 4111can
emulate to accordingly. The chapter on “Printer Control Language” is longer and more detailed
than the other. That’s because you are more likely to use laser printer comtiands than commands for vector graphics.
Thefinal“Technical Supplement”containingthe command andcharacter reference tables will m-obablvget thumbed the most.
JG-
Conventions
Incidentally,oneofthoseTechnical Supplement tables suggestsa couple of typographic conventions we’ll use. Base ten (decimal) numbers will gener­allybeusedhere; ifwehavetousebasesixteennumbers(hexadecinzczi)we’11 expressly say so.
And second, the lowercase L is practically identical to the number one (1versus 1). Because lowercase L is used in many command descriptions, we’11use the character ~ to avoid confusion.
The Star LaserPrinter 4/// Operations Manual
ThismanualisthecompaniontotheStarLuserPrinter41110peration.rManual that came with your printer. A laser printer is a fairly complex tool that
requirescare and delicate handling. Soto usethisApplications Manual best, make sure you understand that Operations Manual first.
Your OperationsMattualholdsessential information aboutthe LaserPrinter
4111.such as how to:
unpack and set up your laser printer,
connect the Star LaserPrinter 4111to your computer’s serial or parallel port.
link the LaserPrinter 4111into a network of several computers,
configuretheLaserPrinter41Hto yourneeds (withvariables suchas paper size and speed of data transfer),
load paper and the toner cartridge,
operate the panel switches and display,
run the LaserPrinter 4111self-test,
look after your printer to keep it in peak condition.

TABLE OF CONTENTS

1. Getting to know Your Star LaserPrinter 4111............................................. 1
1.1Star LaserPrinter 4111Hardware ................................................. 1
1,2Star Laserprinter 4111software ...........................................,,.....5
2. Controlling Your Printer
2.I Printer Parameters ...........
2.2 Controlling the Printer .............................................................. 16
2.3 Controlling the Page .................................................................20
2.4 Controlling the Printing ............................................................25
2.5 The Star LaserPrinter 4111Superset..........................................26
3. Fonts .............................................................................................................27
3.1 Font Terminology .....................................................................27
3.2 How the Star Laserprinter 4111Stores Fonts ............................30
3.3 Symbol Sets ..............................................................................33
3.4 Managing Fonts........................................................................34
4. Printer Control Language ..........................................................................4l
4.1 Printer Control Language .........................................................41
4,2 Controlling [he printer ..................................................,...........43
4.3 Page Orientation .......................................................................46
4.4 Moving the Print Position ........................................................51
4,5 Controlling Fonts......................................................................61
4.6 Using Your Own Fonts ............................................................79
4.7 Raster Graphics ........................................................................84
4.8 Pattern Graphics .......................................................................87
4.9 Macros ......................................................................................93
5. Vector Graphics .....................................................................................,....97
5.1 GL/2 Commands and Syntax ...................................................97
5,2 controlling the prin[er ......................................... ....................99
5.3 Configuration and Status ........................................................ 102
5,4 Vector Group........................................ ................................. 106
5.5 Polygon Group ....................................................................... 110
5.6 Line and Fill Attribute Group.................................................113
5.7 Character Group ..................................................................... I 19
5.8 Escape Sequences in GL/2 Mode ........................................... 126
............................................................................
....................................................... .
13 13
6. Technical Supplement ............................................................................... 129
6.1 CommandSummary............................................................... 129
6.2 Symbol sets ............................................................................ 134
Index .............................................................................................. .. ....... .... 165
m
Gettingb KnoW’Yow ‘”
StarLaserPrinte~
4111
This chapter introduces both the hardware and software aspects of the Star LaserPrinter 4111’spersonality, from fonts and print engine to ASCII and Escape sequences.
1.1 STAR LASERPRINTER 4111HARDWARE
1.1.1 Versatility
Your Star Micronics Star LaserPrinter 4111works with practically all
commercial softwareprograms andcomputers. With featuresthatgo beyond
Star’s easy, affordable 9-pin and fast, quality-printing 24-pin dot matrix
printers,the StarLaserPrinteristhelogicalnext step inthe seriesof fine Star
Micronics printers.
Your Star LaserPrinter 4111produces pages that lookclose totypesetquality,
with up to 90,000 dots per square inch— no more NLQ (near letter quality) compromises. The Star LaserPrinter 4111produces four of those pages a minute. These numbers translate to about five times more resolution and
about three times more speed than the average dot-matrix printer.
Star’snew printer isremarkably versatile. You can printcomplicated forms
(widthwiseifyouwant)...detailed graphs...your owncustomized typestyles
...digitizedphotographs ...
You can even print your letterhead and logo as you print your letter, and reprint them directly onto a business envelope. You don’t even need to remove thepapertraytoprintthe envelope:just slideit into themanual feed
slot.
otherlanguages(includingArabicandJapanese).
1
The Star LaserPrinter 4111is ideal for desktop publishing. The pages it produces make perfect photocopy or instant-printmasters. And all the main desktoppublishingsystems, includingAldus Corporation’sPageMaker and Xerox Ventura Publisher, work splendidly with the Star LaserPrinter 4111. With “page makeup” programs likethese you will be able — maybe for the first time — to deliver communications with the impact of top-notch graphics.
1.1.2Font options
You can print with an amazingly wide variety of type fonts and sizes. The Star LaserPrinter 4111comes with two built-in bit-mapped fonts and two built-in scalable fonts, which can be printed from 3 points to 999.75 points in size (a point is about 1/72 of an inch). These fonts are:
CG Times Font
Univers Font
Courier Font
Li ne Printer Font
Besides these, you may be able to use optional cartridges and disks to give your Star LaserPrinter 4111a variety of extra fonts, such as these:
Prestige fonts Letter Gothic fonts H Gothic fonts
Roman fonts Presentation fonts Optical Character Reader fonts Line drawing Bar codes
You can load your Star LaserPrinter 4111’smemory with fonts stored on computer disks. Literally hundreds of fonts are marketed by font-supply companies. Some fontsareevenobtainablefrom computer “user groups” or “electronicbulletinboards”. Fontsyou getthis wayare in thepublic domain, which means you don’t need to pay a licence fee to use them.
2
Ask your Star LaserPrinter 4111dealer about resources like these. Desktop publishing with laser printers is fast-changing territory, and some Star Micronics staff people have found electronic bulletin boards and computer usergroups quitehelpful inkeeping up withthe changing pace. If you invest a littletime this way it may repay you well.
.1.1.3How your laser printer communicates
Your computercommunicates with the Star LaserPrinter 4111througheither aparallel cable or one of two kinds of serial cable. The printer’s inter-ace, thelinkorboundaryitshareswithyourcomputer, defineswhetherthe printer willacceptcharactersand commands fromyour computeronebyteorone bit at a time.
A bit is the smallest unit of computer or printer memory. It has either a low or high electric charge, which we represent with the digits Oand 1.Usually eight adjacent bits are grouped to form a byte. Since a byte normally represents one character, this stringof bits— 01000001— might represent the letter A.
The serial interface accepts just one bit at a time from your computer. A parallel interfacecan handle a whole byte at once, by moving data bitsside­by-sidealong separate wires. You choose which interface method you want to use by selecting it on the operator panel, as explained in your Sfar
LaserPrinter 4111Operations Manual.
1.1.4 The Star LaserPrinter 4111is a computer
The Star LaserPrinter 4111firstmaps thecharacterstobeprinted intoitsown random access memory (RAM). That is, the printer builds.a “picture” in its memory corresponding to the page you want to print. When that’s done the printer can reproduce the page onto paper on its own, letting your computer get on with other work.
Your Star LaserPrinter 4111comes with one megabyte of RAM — the equivalent of about one million characters. A Star LaserPrinter 4111option lets you add a second megabyte of RAM if, say, you need to map full-page graphics or store more fonts. Accompanying all that RAM is another 2 megabytes of read only memory (ROM), containing a library of internal fonts and the programs that let the Star LaserPrinter 4111emulate other printers.
3
An Intel 80960SA computer chip controls boththe memory and theprinting mechanism inthe printer, called the print engine. The printer stores a whole page in RAM before printing it. (If a page is so dense that it overflows memory—amost unlikelyevent—the StarLaserPrinter4HI printsthepage on two sheets.)
1.1.5 The Print engine
It’stheprintenginethatformsthe actualcharacters and graphics.The engine directs itslaser, a pinpoint streamoflight pulses, throughmirrors and lenses onto the surface of a positively-charged rotating drum.
r“i””r
~Photosensitive drum
Asthe laser scans, it“draws” the page-map stored inyour printer’smemory. Wherever a light pulse strikes, that tiny part of the drum drops to a neutral electricalcharge.Thatspotthen attractsfinetonerpowder asthedrum rotates past the powder compartment.
As the drum rotates further itmeets the paper. The paper itself is negatively charged by passingbya finecoronawire. Sinceopposite chargesattract, the negative paper clings to the positive drum. Then heat and pressure from a rollermeltor,fusethe dots oftonerontothe paper, precisely reproducingthe image.
Lens Laserbeam
Scanningmirror
ctor laserdiode
Finally thepaper slides intotheoutputbin.The paper usually comesout face dowmso it stacks in the correct sequence.
4
1.2 STAR LASERPRINTER 4111SOFTWARE
1.2.1 Binary and hexadecimal arithmetic
Ifyoualreadyknowwhathexadecimal numbersare, youcan skipthissection
and go ahead to read about ASCII.
The decimal number system with which we’re all familiar is a positional counting system. There’s the “ones” position, the “tens” position, the “hundreds”position and so on. Each higher position isworth ten times more than the position to therightof it, since the decimal system uses the base of ten. Moreover, we need ten symbols to show the actual values that may be in each position.
The binary system ispositional too. There’s the “ones” position, the “twos” position,the“fours”position,the “eights”position and so on. Inbinary each positionisworthonlytwice thatof theposition to itsright.And we onlyneed two symbols—O (zero) and 1(one)—to showthe values thatmaybe in any position. So in binary we get numbers that look like 1010or 10001100.
The hexadecimal system is made of base-sixteen numbers. Hexadecimal is positionallikethe othercounting systems. Andeach higherposition isworth sixteen times as much as the position to its right.
We need sixteen different symbols to show all the possible values one hexadecimaldigitcould have. Wecan useourdecimal system’sten symbols, butwe’vehadtoborrowafew more fromour alphabet to get allthe symbols we need. In hexadecimal, therefore, you can have a number that looks like 2C7C, or even FACE.
Here’showthe decimal, binary and hexadecimal number systems compare:
Decimal Binary
o 0000
I
2
3 0011
4 O1oo 5 6 0110
7 01I1
0001 0010
0101
Hexadecimal
o
2 3 4 5 6 7
Decimal 8 9
10 11
12 13 14 15
Binary
1000 100I 1010 lo]I I100” IIol I110 1111
Hexadecimal x 9
A B c D E F
5
The importantthingto realize is that there’s more than one way to show the
samenumeric value.Computerprogrammers, for example, occasionallyuse the hexadecimal system because it’s so compact. (Programmers often just say “hex”.) This binary number:
101001011111110100110111111011010010110100001001
looksquiteabittidierwhen itiswritten asA5 FD 37ED 2D09, whichmeans the same thing.
1.2.2 TheASCII table
Where does the Star LaserPrinter 4111get the characters and instructions it needstoprintinthefirstplace?Itgets themfrom yourcomputer,which sends a stream of text and commands to your printer.
The program in your computer that controls everything sent to the printer (called the printer driver) will usually be included with your computer programs, such asyourword processor. But thecommands could alsocome from aprogram you’ve written, perhaps inBASZC,aprogramming language that uses common English words.
Internally, computers and printers use only the binary number system to representbothcommands and allthealphabetic, numericand otherkeyboard symbols. Nearly all of those machines use the same scheme to code those symbols, theAmerican StandardsCodeforInformationInterchange(ASCII).
An example:inour familiardecimal system,binary 01001010adds up tothe number 74. Depending on which program your printer is using, it can interpret that binary string 01001010 as either the number 74 or the symbol
J. The printer stores the symbol./ at position 74 in a table in its memory.
That eight-bit binary string,or byte.,can be broken into two halves. The left or high-order part containing 0100 is called the zone portion; the right part holdingthe 1010iscalled thedigits portion.And in thehexadecimal number system, the zone and digit parts of that byte are represented as 4 and A respectively (look them up in the list above).
6
Sothe laserprinterunderstands thesymbolJas 01001010, which wecan also represent as the decimal number 74 or the hexadecimal number 4A. We’ve printed this byte vertically and horizontally below, showing how it adds up to decimal 74 and hex 4A.
o x 27
1x 26
0x 25 0x 24
1x 23
0x 22
1x 2’
ox 2°
zone
0100
4
— —
— —
— —
— —
— —
— —
— —
digits
1010
A
o
64
0 0
8
0
2
0
74
Binary Hexadecimal
Decimal
The ASCII table in the Technical Supplement shows all these equivalent representations for the symbols your laser printer understands. The table organizes them in ascending order. In fact, ASCII isorganized in a way that actually makes sense.
Flip back there for a quick look right now. See how you can slice the table into clumps of 16 or 32, based on what’s in the zone portion under the hexadecimal column? These clumps make subgroups of similar symbols:
hex 00 to 1F are the command symbols called control codes,
. hex 20 to 40 are the common keyboard symbols and numerals, . hex 41 to 60 are capital letters and the less common keyboard
symbols,
. hex 61 to 7F are lowercase letters and a few final symbols.
That takes care of the first 128 ASCII symbols. However, nearly every computer and printer manufacturer treats the second half of the table differently.Hewlett-Packard, forexample, puts avariety ofaccented foreign languagecharacters into positions 128-255(oftenreferred to as/zighASCZl). Epson gives you a choice of either italics characters or IBM character graphics.
7
1.2.3 Control codes
The ASCII table shows symbols like.Jor2 theway they actually print on the laser printer. But ASCII includes more than just printable characters: none of the control code commands at the beginning of the table actually print. Instead,when yourcomputer sendsacontrolcodeto thelaserprinter itmakes your printer do other things, such as sound its beeper.
Control codes mostly handle communications between your computer and theprinter atthe lowest level,atcablelevel.For example, acouple ofcontrol codes make sure the printer lmjfer (your printer’s storage memory) doesn’t overflow. In this book we’ll indicate control codes enclosed by angle brackets to their abbreviations in the table: <FF> means the Form Feed controlcode, which advances the printer to the next page-justas the [PRINTI button does.
1.2.4 Escape sequences
Control code 27, <ESC> or Escape, is a particularly important one for
printers.To tellyourprinterallthethings youmight need— settingmargins,
saying where to print,choosingaparticularfont, startinggraphics and so on — requires many more than just two or three dozen control codes. So the <ESC> control code has a special meaning: <ESC> means “the next character specifies a command, not something to be printed”.
Therefore if you send just the chara$ter:
to the printer it will print a J and that’s all. But if you send the <ESC> code just before the c then the printer willswitchoverto print selftest.Extending thecontrol codes this way gives you many more commands to control your printer. In fact, these “Escape sequences” make up most of the Star Laser Printer’s language.
In this book we’ll leave spaces between characters when we show escape sequences. You’ll find
<ESC>
(S OP IOh
12vos 3T
a bit more readable than
<ESC>
(sop IOh12vOS3T
8
But remember that you are not to send those spaces if you send commands to the printer.
To sum up, printer commands are of two types. A cw?trolcode is a single­character command that tells your printer to do something, likemove down one line. An Escape sequence controls a printer operation too, but is more
than onecharacter long.Sincethey are commands, neither control codesnor
escape sequences are usually printable characters.
1.2.5 Printer drivers
Most software packages already include the printer commands they need. The programs that send commands to the printer so you don’t have to enter them yourself are called printer dri~’ers.
Many programs ask you to install or configure your printer, which usually
means keying into a menu the particular setup information describing your
Star LaserPrinter 4111.You enter such things as how you want to underline, alter line spacing, or move to a new print position.
Someprograms, such as WordPerjict and the systems from Lotus Develop­mentCorporation, letyou putprinter Escape sequencesbefore or rightinside thedocument you wanttoprint.To turn on boldface, forexample, you might hold down special keys on your keyboard, often Iabelled CONTROL or ALT, asyoupressanotherkey.Oryoumight useaspecialFunction key, such as F6.
In fact, to take real advantage of your Star LaserPrinter 4111’sspecial abilities, you might opt for a word processor that lets you specify font changes easily. WordPerfect and Microsoft Word are strong at this, but are by no means the only good font manipulators.
If you have trouble using a particular program with your Star LaserPrinter 4111,you’ll probably get answers most quickly by asking your software supplier how the program interacts with your printer.
In thismanual we refer to programs, fontsand other products soldby several companies. Pleaserealizethatmentioning these productsdoesnot mean Star Micronics endorses them in any way.
1.2.6Sending your own printer commands
Withoutaprinterdriver,sendingcontrolcodes andEscape sequencesto your printer properly requires some knowledge of a programming language like BASIC or Pascal, or at least of how to put such codes into a program. With programming languages, thecomputer doesn’t acton thecommands you put into a program until you tell it to run that program.
When you give a command to the printer from a computer program, you normally enter each part of the command as a separate character. This way you don’t affect anything else happening on the computer. You often send each code or character in the command by giving its position in the ASCII table, as a decimal or hex number.
1.2.7A BASIC example
Here’s an example you can type in right now, to clarify what we’re saying. It’s written in Microsoft BASIC for a computer that uses the MS-DOS operating system, so if you have a different computer or BASIC you may have to translate a bit.
The LPRINT commands all send data to the printer. If the data is something youwantprintedyoujustput itinquotationmarks. Ifthedataisacontrol code you just say where it is in the ASCII table, giving its position as a regular decimal number.
BASIC usuallysendsacarriage return after every 80 characters, to keep the
print position moving when it hits the end of a line. Unasked-for carriage
returns can mess up your printing, however, so it’s a good habit to put in a WIDTH statement as shown. That lets us print over the whole page area.
The <BEL> control code— ASCII code7— is sent inBASIC as CHR$(7). The <ESC> code itselfisCHR$(27). And because we’re using thecharacter
z as part of an <ESC> command, we type CHR$(112) instead of So if you start BASIC and type these commands:
10
“z”.
NEW
10 ‘ EXAMPLE
20 WIDTH “LPT1:’’,255 30 LPRINT CHR$(7) 40 LPRINT CHR$(27);CHR$(112) 50 END RUN
youmakethe printerfirst sounditsbell—most peoplecall ita beeper— and then print the self test.
Generally, when you send a control or Escape code it stays active until you deactivate it.
Mostprogramming languages,and someversionsof BASIC, letyoutreatthe printer as a file to which youcan send data. When you write a program with one of these languages you “open” the printer file, print into it, and then “close” the file when you’re done. This programming jargon soundsfunny if you’re not used to it— but it works.
A few programming languages let you send commands to the printer a third way.ApplesoftBASICisone.With it,you can switchbetweenprinter output and screen output.
1.2.8Printer emulations
YourStarLaserPrinter4111respondstothe sameescapesequence commands that the Hewlett-Packard LaserJet III printer uses.
Macros are singlecontrol codes youcan define yourself, which do the work
ofawholelongseriesofprintercommands.If youare aprogrammer you will
be happy to hear the Star LaserPrinter4111supportsup to 99 macros at once.
11
MEMO
12
You can control your Star LaserPrinter 4111in two ways, either through controlpanelparameters or through software commands. In this chapter we will consider printer controls mostly from the perspective of the control panel.

2.1 PRINTER PARAMETERS

2.1.1 The control panel
The easiest way to control your Star LaserPrinter 4111is through its control panel, as explained in your Star LaserPrinter 4111OperationsManual.
When your printer is onfine (connected to and under the control of your computer), its control panel display shows you the printer’s status. For example, the READYlightblinks when the printer is warming up. The DATA light comes on whenever the printer is holding data it hasn’t printed yet.
When you press the [ON LINE] button, the printer changes from normal to offline mode and cannot accept data from yourcomputer. When the printer is offline you can usethe other panel buttons.For instance, if you press the
[TEST/>] button for two seconds and release itjust after STATUS SHEET is
displayedwhen thelaserprinter isoffline,itfinishesprintingthecurrentpage and then feeds in and prints a status sheet.
Some buttons on the panel let you perform two functions. Holding one of those buttons down, rather than quickly pressing it, selects a different operation. For example, holding down the [TEST/>] button for over five seconds makes the Star LaserPrinter 4111print its font list.
13
I
2.1.2 Parameter settings
From the panel you can also change the parameters that define how your printer works. Parameter just means earlier kinds of printers, you’ll understand that laser printer parameters controlpretty much thesame thingsDZPswitches do.(A DIP switchor’’dual
in-linepackage switch” is a setof small switches that controlvarious printer
functions.)
The printer stores these parameters as easy-to-use program menu items that
you can select from the control panel. These parameters specify:
number of copies (how many sheets of each page to be printed)
character (what character font to print)
page size (what size the printer will use)
layout (how pages will be formatted)
paper feed (what paper the printer will use)
input buffer (what size the printer can store the input buffer)
interface (how the printer communicates with your computer)
A dejbult is the setting the Star LaserPrinter 4111will use if none is
specificallyselected by a program. When you firstturn on or later reset your
printer these default settings will take effect.
“variable”. If you’re familiar with
Your main usefor the control panel will likely be to set the default settings
you want for these parameters. However, you will probably find the panel
convenient too when you want to switch between manual and automatic
paper feed.
2.1.3 Four versions of parameters
The Star LaserPrinter4111actually stores four versions of these parameters:
its “ultimate default” factory settings,
the user default settings in effect when you first turn on the printer,
your initialsettingsfor one particular session,
and the current settings that the printer is using now.
These are in priority order. The current settings always override the initial
sessionsettings,which inturnoverridetheuserdefault settings,whichinturn
override the factory settings.
14
Factory settings are programmed into the Star LaserPrinter 4111when it is
builtatthe factory. Your printer keeps the factory settingsfor its parameters in ROM; they never change. You can copy them into the current settings or any other settingsas needed. But the only way you can return to the factory
defaults is from the control panel; no commands do this.
A few factory default settings are as follows:
Item
Fuetory deftiult settincq
Emulation HP LaserJet III Feeder
Multi-purpose tray Number of Copies 1 Orientation
Portrait Font 10-pitch 12-pointCourier (internal) Lines/inch
6 lines per inch
The user default setti}?gsare the normal default settings. The printer keeps themeven when you turn off the power. There are two settings:Mode 1and Mode2. The Mode 1isthenormal default seton power-up orhard reset. You
can select either Mode 1or Mode 2 by using [PROGRAM] button in normal offline mode. When you turn on the printer, these user default settingsget copied intothe
initial and current parameter settings.
You probably will not often change the Star LaserPrinter 4111’sinitial set- tings(sometimes called “session settings”). You’11likelyonly change them when youwantto useadifferent printeremulation than normal. These initial settings stay the same as the user default settings until you change them.
On the other hand, your software will probably change the (urrent settings many times within the same document, with every change of font or print style.
15
I
2.1.4 How to change parameters
With the printer offline, ifyou press the [PROGRAM] button theprinter goes into “program” mode. You can then step through the laser printer’s four levels of program menu to configure your printer. That’s the process of changing certain printer settings so your computer and printer can commu­nicate properly.
It’s actually pretty easy. Flipping through and setting parameters from the panel isdescribed in detailintheStarLaserPt”inter4111OperationsManual.
Basically, all you do is press the [<]or [>] buttons to scroll through the se­quence of possible parameters and values, which is clearly shown on the panel display. You press [v] when you want to go down and scrollthrough alower menulevel.And youalsopress menu item as the value for a current parameter setting.
The two last menu headings let you load one version of the parameters into another version. One moves the current parameter values into user default parameters. The final menu option goes the other way, letting you load the factory parameter settings as your current settings.
[A]when youwanttosaveaparticular

2.2 CONTROLLING THE PRINTER

Inthissectionyou’llmeettwoseparatecontrolsoverhowtheStarLaserPrinter 4111itself works. The INTERFACE parameter controls communications between the printer and your computer. You can set the INTERFACE parameters on the control panel.
2.2.1 The l/VTERFACEparameter
The INTERFACE parameter, the most basic of the Star LaserPrinter 4111’s configuration settings, defines how your computer connects to the printer. You can set the INTERFACE to either Serial or Parallel. In most single­computerenvironmentsyou’ll optfor thefaster Parallel interface;in amulti­user network you may be better off with Serial.
The particularprinterinterface settingsdon’tmatter as much as making sure they match those on your computer. If you use an MS-DOS computer, you can”set your computer’s parameters with the MODE command. See your MS-DOS manual.
16
Most MS-DOS and AT-compatible computers support up to three parallel and two serial ports, which come on expansion boards you plug into your computer.Whenyouinstallsuch boardsyoumust setswitchesto indicatethe numberandaddresses ofthese ports. Ifyou specifythe wrong addresses,you won’t be able to print.
Serial interface: rate
If you ask forthe Serial interface you’llhave to tell your printer more about how the data will be coming in — in particular its rate and unit size and the meanings of any special bits.
The Rate parameter specifies how fast data will be arriving, measured in baud (named afterthe French communications engineer Jean Baudot). Pick any of the following data transfer rates:
300 baud 600 baud
1200 baud 2400 baud 4800 baud 9600 baud (the default)
19200 baud
38400 baud.
Roughly,onecharacter a second worksoutto 11baud.If you’renotsure how fast your computer will transmit, the general rule is to experiment. Try sending a page to print at the highest speed, and work your way down until the printer’s output looks OK.
Serial interface: special bits
In Serial mode you’ll also have to specify if your computer sends data bits in groups of seven (most computers send eight, the default for a byte).
Sometimes an extra bit gets appended to make the sum of all bits in each character always odd or even; that’s calledparity. A parity bitcan help spot transmission errors. If your computer sendsthat extra parity bit, you’ll have tosay whetheritproducesanevenorodd numberof“on” bitsinthecharacter.
17
You’ll also have to indicateifyour computer sends two stop bits to indicate the end of a byte, instead of one, the default. These serial interface settings are described in more detail in your Star LaserPrinter 4111Operations
Manual.
Serial interface:protocol
Finally,inSerialmodeyour computerwill useoneof twoprotocols toensure dataissentproperly.Protocol (sometimesalso called “handshaking”)means “who says what when”, and is the way your printer tells your computer it’s ready to receive data. Your computer and printer communicate by sending protocol control codes (they’re at the front of the ASCII table).
Someprogrammers call the XON and XOFFcontrol codes “kisson and kiss off’; otherscall the same protocol DC1and DC3 (for device control). Either way, these codes let your printerrun the show, telling the computer when to startand stop sendingdata. Your printer asksto have data held back when its memory is nearly full or when it senses an ERROR condition.
DTR (Data Terminal Ready) protocol does the same thing slightly differ­ently. The printer sends a continuous high-voltage signal over the cable as long as it can accept data, but drops the voltage to say “whoa” to the computer.
Look in your computer’s operations manual, in the section dealing with communications protocols, to see which is best for your system. You can sticktothe printer’sdefaults ifyourcomputer doesnotuse theDTR, butdoes use XON/XOFF.
2.2.2 Checking your connections
Your computer andprintermay have troublecommunicating when you first introducethemto each other. The quick way to find out if your settings and printer cable are working isto send your printer a printout from your screen (CTRL-P with MS-DOS).
When that done you will also have to press the print button on the printer, which makes the printer advance to a new sheet. No laser printer prints and
ejects a page untilit’stold to feed aform,or untilit has received all the lines the page can hold.
18
If your Star LaserPrinter 4111doesn’t print what’s on the computer screen, recheck your connections and interface settings. With an applications program likeLotus 1-2-3 or Microsoft Word, you use a printer setuproutine to match your computer with your printer’s operating characteristics. So double-check your software settings; your computer’s output, for example, might not be going to the proper port.
2.2.3 Hints: The hex dump
To make your Star LaserPrinter 4111print in hexadecimal rather than the usual ASCII symbols, press the control panel buttons that put the printer offline and in PROGRAM mode. Move to the EMULATION parameter’s HEX DUMP setting and select it.
Some control or Escape codes can be problems on a few computers; those computers change certain codes when sending them to the printer. If you think you have this problem you need to see exactly what your printer is receiving. We recommend you run a short program that loops through and prints the ASCII table. Print in hexadecimal rather than the usual ASCII symbols.
If you spot a problem code you can try to bypass the problem, either by sending each code directly to the printer, or by changing your system’s printer driver. Such computer-specific solutions, though, are beyond the scope of this manual. We suggest that if necessary you consult another programmer more familiar with your computer.
Actually, if you are debugging any program you may find this hex-dump mode helpful. It can be a great trouble-shooter.
19
I
2.3 CONTROLLING
In this section we look at two controls you have over how the Star LaserPrinter 4111handles and formats its pages: You can set values for the PAPER FEED and LAYOUT parameters on thecontrol panel. At the end of this section we’ll also preview different ways to move the print position.
2.3.1 The PAPERFEED parameter
The PAPER FEED parameter lets you specify both what kind of paper you want and how the paper is fed.
One convenient thing about a laser printer is that itdoesn’t need continuous forms, sometimes called ~bnfbki paper. Other printers feed in a stack of forms— withpages alljoined byperforations— byhaving sprocketsengage and pullalongpinfeed holespunched alongeach side of thepaper. After it’s printed you have to tear off the pinfeed-hole strips and then separate the pages,
With the Star LaserPrinter 4111you can print on a variety of ordinary cut sheet pages.
For the Feeder value of this PAPER FEED parameter, you first enter either multi-purpose tray, manual feed or cassette (option) to indicate where you wantpaper fed from. The multi-purposetray handles various typesand sizes ofpaper (Letter, Legal, A4, B5, Executive, OHP sheets, Labels, Envelopes). Manualfeedmeansyoufeed each sheetby hand fromthemulti-purpose tray. The cassette tray automatically feeds single sheets, much like sheet feeders on other types of printers.
ThedefaultpapersizeisA4,youcanspecify othersizestoo.A different-sizes tray automatically selects that different paper size,
8.5 by 11 inch letter-size paper
8.5 by 14 inch legal-size paper
B5 international (used in every country except North America) (182 by 257 mm)
the narrower “executive” size (7.25 by 10.5 inches)
20
Oneothernicethingyoucando isprintdirectlyon envelopes.WiththisPaper Size parameter you can specify envelopes in sizes, Monarch, COM-10, InternationalC5 and DL. Thenjust work out whereto putthe address, setthe orientationto landscape (see below), and slide your envelope intothe multi­purpose tray!
2.3.2 Hints: Pape6 labels and transparencies
The best paper forthe Star LaserPrinter 4111hasa smooth finish and isof 60 to 105g/mz(20 to 24 pound) weight. Any paper designed for photo­copiersshoulddothetrickthough;Xerox 4024and CanonNPprint nicely. High quality cotton bond paper, which contains up to 25 percent cotton fibres, works passably well with even heavier weights.
Theabsolutelimitsare 16-poundpaperatthe lightend and 35-poundstock at the heaviest. With heavy paper, open the tray so the pages will be delivered face up and won’t have to bend over the final rollers.
Be aware that any puckered or woven finish may not print as sharply as you’d like. Avoid shinycoated paper or multipart forms. And don’t even think about putting in stapled or ripped pages.
If you frequently change paper weights, you will probably get skewing problems — lines thal print at an angle because of misfeeding. For best results, when your Star LaserPrinter 4111is first set up have the paper feeder“squared” forpaper ofat least60grams (20 pounds).Lighterpaper, though cheaper, isn’t really,the way to economize.
Want to print on your own preprinted letterhead? Fine — so long as your logoisn’tthermographed.Thick colored inkmay lookluxurious,butitcan also wind up stuckallover your printer’s roller. Stay away from any inks that soften at relatively low temperatures; your printer fuses pages at
200”C.
This warning appliestocoloredpaper too, ifit hasbeen tinted witha low­temperature dye.
When printing startsfading becausethe toner islow, remove thecartridge
and gently rock itback and forth half a dozen times. Don’t tip it up or the tonermay spillout.Redistributingthe tonerpowder this way can keep the cartridge going for another tray of paper.
21
I
. No question, working with single label sheets is more convenient than
with continuous label stock. Laser printers are faster and produce better­looking labels than other printers. But laser printers, which work by electrostaticphotographyratherthanimpactpressure,putdifferentstresses on labelpaper. Each sheethas to bend over and through the guide rollers; moreover, fusing toner to the paper involves heat. You can eliminate trouble by always feeding label sheets manually.
Both Avery’s “Lasergraphic” labels and Canon’s labels seem to work
fine. Your main concern is that the labels completely cover the backing
sheet so itshowsonly at the outside margins. That way individual labels
can’t easily peel off. The safestapproach isto laser-printsharp master copiesonpaper and then
photocopy those lists onto labels. This will avoid putting your printer’s adjustment for paper thickness out of adjustment.
. Ifyou.wanttoprinttransparencies foryouroverhead projector,somefilms
will actually melt in your laser printer. Stick to 3M’s medium-weight transparency film (type 501) or to Hewlett-Packard’s #92285J.
2.3.3 The LAYOUTparameter
The layoutorformat orsetup ofa page refers tohow text ispositioned on the page. Layout includes page orientation, margins and the spacing of charac­tersacrossand linesdownthepage.You can controlthesewiththe LAYOUT parameter.
You probably won’t use the LAYOUT parameter on the control panel’s program menu very much though. Most of the time you’ll either leave the Star LaserPrinter 4111with itsdefault settings,or look after page formatting with commands you send from your computer.
Page orientation
A page’s orientation tells you inwhich direction the print goes on the page. When youuseportraitorientationthelines areprinted asthey arein anormal business letter, across the width of the page. A portrait painting of a person is usually vertical — hence the name.
22
Landscape
Porlraii
When you use landsmpe orientation the words are printed “on their sides,” vertically up the length of the page. Text written with landscape orientation only lookscorrect when you turnthepage so its lengthruns side-to-side,just like the painting of a landscape.
Envelopes must be printed with landscape orientation. You also will use
landscape regularly to print charts or banners, and spreadsheets or reports
with so many columns they wouldn’t otherwise fit on the page.
All internal fonts, and almost all cartridge and downloaded fonts, are stored
in the Star LaserPrinter 4111with portrait orientation.
Margins, columns and lines
Youcan change margin settingsforallfour edgesof apage.The leftand right side margins can have values from Oto 132,defining the margin columns between which words and images can be printed. And the top and bottom margins can be set at anywhere from Oto 112lines.
Text
Length
Portrait Orientation
Top Margin
I
<T-n”/
‘ Bottom Margin
\
‘/
Landscape Orientation
23
The meaning of a line(sometimes called a “row”) isdefined by the t’ertical motim?index (VMI). The printer moves the print position down a line when it gets a Line Feed code, usually when it bumps into the right margin.
You’ll probably letyourcomputer program set the line depth. But from the
panelyoucan.settheVMIvaluein incrementsfrom 1/48to 255/48ofan inch.
Auto’parameters
The print position refers to the point on the page where the next character will be printed. When the printer reaches the end of a line, the Auto Parameters settings tell it whether or not to automatically:
. move the print position down one line (Iinefeeci), . or keep text out of the side margin (auto wrap).
2.3.4 Moving the print position: a preview
Withdot-matrixprinter,youpick where toprinton thepageeither bymoving the printhead back and forth or by moving the paper itself. Laser printers don’t have printheads, but the principle remains the same: you have to say exactlywhereon thepage each pictureand stringof textisto go,so eachpage can be constructed in the printer’s memory.
Instead of talking about printheads we talk about moving the printposifion (some people call it moving the “cursor”, ogy). Horizontally, you can move the print position with backspace and carriage<return commands. Vertically, youcan move theprintpositiondown thepageby printing so many lines per inch, or by sending line-feed and half line-feedcommands. You canalso moveto tab settingsbothhorizontallyand vertically (handy for tables and blank forms, or making room for your
diagrams).
But those aren’t all. You can tellthe Star LaserPrinter 4111to move the print position vertically or horizontally in increments of:
1/10, 1/12or similar fractions of an inch (pitch settings), 1/48,or 1/120 inch (line or column definitions),
.
1/300inch (dots), or 1/720inch (tenths of a point).
24
using the computer-screen anal-
These increments reflect the history of twentieth century printing. Pitch, referring tothenumber of characters printed in each horizontalinch, derives from how typewriters space their characters. Lines and used by earlier computer printers (on which they are called horizontal and verticalmotion indexes). You already know about the StarLaserPrinter 4111 beingabletoprint300dots totheinch.Andthe unitbywhichtypesettershave
measured text for centuries is the point,
Onehintaboutmovingtheprintposition:youcan confuse yourselfifyouuse more than one or two different units during the same session. So decide beforehand how accurately you need to move the print position (notforget­ting any graphics you want to include).Then stick to the unit(s)you choose.
The commands that move the print position in all these ways are described
in chapter 4.
about l/72nd of an inch.
columns were first

2.4 CONTROLLING THE PRINTING

The CHARACTER parameter defines font attributes and setup values (if any) for the Star LaserPrinter 4111.
A font attributes or characteristics determine what that font will look like
when it isprinted. The next chapter, “Fonts”, exploresthe details of all font attributesinmore detail.But let’shave aquickoverview now,because you’ll meet these terms on the control panel program menu.
Font attributes: a preview
Orientation (portraitor landscape as described earlier) is usually thoughtof as one attribute of a font; it’s not really a page formatting issue. Besides
orientation, the fonts with which you print have these attributes:
Symbol seris sometimes called “character set” — which can be confusing, since some people say “character set” when they mean a font. Symbol sets are subgroups of a font’s symbols that are most appropriate for particular countries, such as the UK (f), France (a), Latin America (ii)or Japan (Y).
Spacing andpitch are linked. Characters can be spaced on the linepropor-
tionally,so a narrow letter suchasi takes lessroom than a wide letter like W,
Or characters can be spacedallthe same width: twelvecharacters tothe inch
is the monospaced spacing called 12 pitch.
25
Pointsi:e defineshow big characters will print, such as 10or 12pointshigh.
St]’ledefines whether characters print in upright or italic style.
Stroke weight defines how bold a typeface prints.
Finally.,t]p<faceitself means the artistic design of a font. Your printer’s internaltypefacesinclude,CourierandLinePrinter.WiththeStarLaserPrinter 4111you can also use Roman, Prestige, H-Gothic, L-Gothic, Orator and hundreds more typefaces, which you load into the printer from cartridge or computer disk.
When you enable font .~[~tzippu)un?ete}-.~on the control panel, it means you start off with particular font attributes as defaults.
2.5 THE STAR LASERPRINTER 4111SUPERSET
Here’s an important fact: you can set nearly every one of the above parameters by sending your printer a corresponding Escape sequence com­mand.Those Escapesequencecommandswill overrideany settingyoumake from the control panel.
The main thing to realize about most printer commands, though, is that you probably don’t need to use them. Nearly all popular software packages include printer drivers, which send commands to the printer so you don’t have to type them yourself. Some of those programs ask you to key in set­up parameters about your printer. Other programs let you put printer commands before or inside the document you want to print.
But maybe thesoftware you use doesn‘thave printer drivers for any printer yourStarLaserPrinter4111emulates: You stillmightnothave to writeprinter commands yourself.
Severalcompanies sellprograms thatlookafter laser-printingcommands for
such software. Ask your dealer aboutLaserControl, Printiorks ji)r Lasers, PCLPakandRAMResidentPrit?tmerge.There’snotmuchpoint inreinventing the wheel.
26
Em
Am

Fonts

The fontsyou use determine what your pages will look like. In this chapter we’ll first clarify the meanings of words people use when they talk about fonts.
Next we’ll examine the three kinds of fonts (internal. cartridge and down­loaded) that you can use on your Star LaserPrinter 4111.We’ll cover the particular sets of symbols you can choose for those fonts too. Finally, we’ll find out how to load the printer with your selection of fonts.

3.1 FONT TERMINOLOGY

3.1.1 Typefaces and fonts
First, a few definitions. A typeface is a family of characters with the same basic design. The artisticcharacter design you choose establishesthe “tone of voice” for all your documents.
m
Several variables can characterize typefaces, including weight (light, me­dium, bold), width (condensed or extended), and style (upright or italic). Courier,forexample, isatypeface familythat includesthecharacters inboth
Courier mediurnitalic and Courier bold upright.
Let’sconsiderthesevariables.Bold print issometimes called “emphasized” or“double-strike”.On earlier printersboldface isgenerated by printing each character twice;dot-matrix machines print the second impressionjust a hair below or to the right of the first one.
With the Star LaserPrinter4111you can have different stroke weights in two ways.You canhavetwodifferent fonts,storingandswitching between abold and a medium version of the font. Or you can usejust one font and set bold on and off with Escape sequences. The latter way usesjust half as much font memory.
27
I
Narrow condensed faces used to be called “compressed”. They cram about
fivecharacters inthe spacewherethree usuallygo — idealfor spreadsheets. An extended face, particularly on a dot-matrix printer, goes by several
names: “expanded
it’scalled, extended print is wider than it is high, and can be fairly effective in page headings.
Italiccharacters (sometimes called “oblique”) are slanted. Ordinary upright
characters are often called “roman”. Your StarLaserPrinter 4111comes with
abuilt-inuprightCouriertypeface.Moreover,fromanyoftheStarLaserPrinter
4111’sbuilt-in typefaces you can select a subset of upright symbols called
Roman-8.
A,font is a complete set of characters in a particular size and typeface. In the world of laser printers, the three variables mentioned above — weight, width and style— are a few~ont attributes (sometimes called “font charac­teristics”). Let’s consider three more attributes: font height, spacing and pitch.
“,“enlarged”or“double-width” printing. No matter what
3.1.2 Font height
The baseline is the invisible line upon which characters of type sit. Since
thefirst letter blockswere made of leadalloy, thedistance from one baseline
to thenext iscalled leading(pronounced “ledding”).Type itselfismeasured from the top ofanuscender (the partextending up in theb or k, forexample) to the bottom of a descender (the down-stroke of they or q).
The measurements used to describefonts arepoints andpicas (derived from
the marks and letters in medieval church almanacs). There are 12points to
the pica, and almost exactly 6 picas (72 points) to the inch.
Laser printers for computers measure~ont height inpoints. Onlaser printers the “white space” above ascenders and below descenders depends on how
the line is defined, so the line corresponds to leading. This type you’re
reading has a font height of 12points, and is spaced a little less than 5 lines per inch.
28
The o has been kerned closer to the f.
The font height (24 points) is measured from ascender to descender.
size and type~ace.
Proportional
Ill
t
L;ading is the baseline to baseline measurement.
spacing
Serif
Baseline
3.1.3 Font spacing and pitch
You probably first heard the word pitch in connection with typewriters. Typewriters normally usemonospaced spacing:they giveeach character the same amount of space on the line.
Abouthalf thefontsavailable for laserprinters usemonospaced spacingtoo. Pitch is always expressed as so many characters per inch. Ten-pitch, for example, means a font with ten characters in each inch of the line.
Typesetters for centuries have used two special sizes of type for most text.
Elite characters are 10pointshigh and print 12characters per inch.Andpica
characters are 12points high and pitched at 10characters to the inch. You’ll often run across these monospaced font sizes in the laser printing world.
ideally each character ina word should nestle against itsneighbors so they appear evenly spaced. But adjacent round characters are apt to look too far apart, while flat-sided characters may appear too close.
Proportional spacincqtakes into account the differences in widths among
letters(compare iiwith w. Proportionallyspaced printing iseasier toread thantypewriter-style printing inwhich allcharacters, includingpunctuation,
have the same width.
Real typesetters equip certain characters with kerns, letter parts that extend
out to overlap adjoining letters. In this word TJ!PCJthe J is kerned closely
against the T. Kerning separates great type from good type.
29
3.2 HOW THE STAR LASERPRINTER 4111 STORES FONTS
3.2.1 Bit-mapped fonts
StarMicronicshas earned areputation for attractive, well-designed fonts on its printers, and this laser printer continues the tradition.
The StarLaserPrinter4111usesbit-mapped fonts. Each character ismade up of a pattern or “map” of dots, just like characters on a dot-matrix printer or on your computer screen. Resolution makes the difference: to make each character the StarLaserPrinter 4111usesten or twenty times as many dots as a dot-matrix printer or computer screen does.
Every sizeofprint youwant,plusevery italicorboldface version,hasitsown bit map and is normally considered a separate font. It takes a good deal of printer memory to hold all the fonts you might want at any given moment.
Star LaserPrinter 4111fonts can be grouped into three categories: internal, cartridge, and downloadable fonts.
3.2.2 Internal fonts
The Star LaserPrinter 4111has seven built-in interml fonts that reside per­manently in its read-only memory (ROM). That’s why these are sometimes called “resident fonts”:
Courier Courier 10pitch, Courier 10pitch, Courier 12pitch, Courier 12 pitch, Courier 12pitch, 10point italic Line Printer 16.6pitch, 8.5 point medium
Courier is thefaceusedon the mostcommon electric typewriters. Courier is not printed with proportional spacing. The Line Printer font, designed originally for mainframe computers, is small and designed to pack a lot of characters into every inch of print (great for spreadsheets).
10pitch,
2 point medium 2 point bold 2 point italic Opointmedium Opointbold
30
I
The StarLaserPrinter4111’sscalablefonts havethe samerelative dimensions and general appearance as the following LaserJet III fonts:
CG Times CG Times CG Times CG Times Univers Univers Univers Univers
With these most frequently used fonts in ROM, a page can be assembled muchfasterthan ifthe fontshad tobeloaded intothe printerfor each printing
job.
regular bold
italic bold italic regular bold italic bold italic
3.2.3 Cartridge and downloaded fonts
YourStarLaserPrinter4111can usetwo other kindsof fonts,along withthose built into the printer.
Cartridge fonts, like the internal ones, are permanently stored on ROM chips.The difference is that those ROMs are in removable cartridges. Your Star LaserPrinter 4111has a slot for one font cartridge.
A cartridge may hold anywhere from half a dozen to two dozen fonts, all differing from the internal fonts in size, style, stroke weight or symbol set. You’ll find that cartridge fonts open up a wider range of typefaces too, such as Roman, Prestige, H-Gothic and L-Gothic. Generally, cartridge and internal font typefaces are suitable for both text and headlines.
The third kind of font is neither built into your Star LaserPrinter 4111nor
available just by slipping in a cartridge. You do~’nloucithis kind of font,
which means you use a computer program [o send characters from a computer disk to your printer’s memory. Any downloaded font (sometimes called a “soft” or “installed” font) that you put into the printer’s RAM disappears when you turn off the printer, so you have to download that font again next time you want it.
31
I
Downloadable fonts run the gamut from Egyptian hieroglyphics to those eye-catching decorative fonts known as display fonts.They also include the more exotic foreign-language characters, such as Arabic or Cyrillic, and symbol and mathematical fonts (sometimes with fractions).
How can you compare cartridge and downloadable fonts? When you use cartridge fonts you don’t have to take time to download them. They don‘t take any of your Star LaserPrinter 4111’sRAM memory either. But downloadable fonts offer many more choices. Downloadable fonts usually cost less too.
The printer always knows where its internal fonts are. For each emulation program, italsokeepstrack ofcartridgeand downloaded fonts ina part of its memory called the~ont table.
So with the Star LaserPrinter 4111you can have many fonts available at any one time — the internal fonts, the fonts on any cassettes you’ve plugged in,
and any fonts you have downloaded. You can change fonts in mid-line to emphasizea wordortwo whenever you want.Youcan mixinternal,cartridge and downloaded fonts in the same document.
3.2.4 Hints: Where to get fonts
You can print any downloadable font that works on the HP LaserJet HI. Several other companies sell downloadable fonts which are compatible with your Star LaserPrinter 4111.The Bitstream Corporation in Boston is oneofthemore popular; Conographic is another. Xerox includesa setof fontswith its Venm}a Publisher desktop publishing software, which you can use with your printer.
The SoftCraft company now markets a Bitstream-developed product called “Fontware”. With Fontware you can generate bit-mapped fonts of
any size from a library of outline fonts. In outline fonts each character’s profile isdefinedjust once and the printer generates any font heightfrom that profile, which saves printer memory.
Don’t hesitate to ask your Star dealer where you can buy cartridge and downloadable fonts. If you really can’t find the one you need, you can
design and download your own customized fonts. This is noeasy job, but if you’re curious it’s described in chapter 4.
32

3.3 SYMBOL SETS

Let summarize briefly, to put the subject of symbol sets in context.
The attributes of a font determine what that font will look like when it is printed. We covered all but orientation at the start of this chapter, and orientation in the last chapter. A font’s attributes include:
orientation (portrait or landscape)
symbol set (which we’ll look at next)
spacing (monospaced or proportional)
pitch (10 or 16.66characters per inch, for example)
font height (measured in points)
style (upright or italics)
stroke weight (light, medium or bold)
typeface (Line Printer, Courier and so on)
Though they are not font attributes, such printing features as subscripts, superscripts and underlining are treated along with fonts in the following chapters.
Incidentally, the best way to underline is to use the underline command, insteadofbackspacingand overprinting with the separate underline charac­ter(–).Ifyoudothelatterwithproportionally spacedtext, you’llusually find
the underlining is too long for the text.
3.3.1 What are symbol sets?
Keyboards differ from country to country. The British need their f symbol, the French need their g and 5, the Spanish need their ~ and fietc. Scientists need particular mathematical signstoo. There easily could be four hundred or more possible symbols for any given font.
However, the number of symbols printers store for a font is limited to 256 slots,asinASCII. So some symbols,orthe orderof some symbols,candiffer in any font. Each unique selection and arrangement of symbols is a symbol
set (sometimes called a “graphic set” or “character set”).
. The symbol at position 91 for example is an open bracket, [, in the usual
ASCII symbolset. Butthe same positionholds A (capital A with an umlaut)
in the German symbol set.
33
I
You probably won’t change symbol setsvery often, unlessyou need special symbols for your trade or regularly write in a language other than English.
Your printer supports sets containing just symbols, such as the Greek
alphabet(j?),logic symbols(s), arrows(~), theregistered trademark symbol
(09)and so on.
3.3.2 Default font attributes
When you power on your printer, the internal fonts start off with default attributes which you can change as needed. The default symbol sets is Roman-8.
Technically, you can use any of the Star LaserPrinter 4111’sresident fonts when you send commands. If you want a character that’s not in the font you’re using, don’t hesitate to grab it. Just send the Escape sequences that select your desired symbol set, print with it, then go back to your original font.

3.4 MANAGING FONTS

Youcan seewhichfonts arecurrently selectedon your StarLaserPrinter 4111 by printing a status sheet in offline mode, as mentioned at the beginning of
this chapter. Another TEST mode menu item, described in the Srar La.~erPrinter4111OperationsMunuul, also letsyou printouta listofallthe fonts available on the printer at any given moment.
3.4.1 Selecting fonts
Most popular software packages, particularly word processors, let you choosefontsfrom withinthe program. They sendthe appropriatecommands to the printer and you don’t need to understand how they do it. MultiMafe
usespitch to identify different fonts, for example, while WordPerfect uses
print formats. The point is, you may noteven have to worry about selecting which font to use.
But not all packages do thejob for you. If you are in this situation,you can selectany fontattributementionedabove, either fromthe controlpanel orby sending an Escape sequence command.
34
If youusethe controlpanelinprogram mode, select CHARACTER.Justpress the [>]button to get to the font attribute you want to set, press [v] to get to
itspossiblevalues,press[>]toscan throughthem, andfinallypress [v]to slap in the value you want.
The procedures for selecting a font from a computer program is a bit more complicated. These font selection methods are detailed in the next chapter.
3.4.2 Hints: Desktop publishing and page design
Desktop publishing systems help you automate your specifications for
margins, cover design, typefaces, font sizes, placement of graphics and regular features. You build the specifications you want in templates, standard page designs you later simply call up on your screen and fill in with text.
. Somedesktop publishingsystems,such asAldus’s PageMaker, are page-
oriented: you put each page together individually. These are great for shorter documents, such as newsletters, brochures and letters. Other systems,suchasXerox VenturaPublisher,aredocument-oriented.That makes them better suited to technical manuals and long proposals or reports that go through many drafts.
Other ways in which such systems differ include whether they show on yourscreenwhat you willget onpaper (code-based programs don’t),how welltheyhandlepictures,and howhard theyareto learn.Think aboutyour needs before choosing a desktop publishing system.
c A few of today’s computer programs let you see several different font
sizesand typefaces onyourcomputer screen. That capability isnecessary if you want to see on-screen exactly what will print on your Star LaserPrinter 4111.Desktop publisherscall thiscapability WYSIWYG — “what you see is what you get”.
. When you design yourpages, don’t vary font sizejust to fit text into the
space available. Go with a size that’s easy to read and be consistent. Neverbetempted to usealluppercase letters.When you wantto highlight
text, switch to a bold font or draw a box around it.
Don’t be afraid to usewhite space. White space relieves eye fatigue and
looks more attractive.
35
I
3.4.3 Optional fonts
Manyoptionalfontsavailable foryour StarLaserPrinter 4111complement its
internalfonts.These can give you more variety in symbol sets, spacing,font height, style and stroke weight. To your Courier fonts, for example, you mightadd italicsandbold, legalor math symbol sets,and sizes ranging from 7 to 14points.
Optional fontsoffer different typefaces too. Ask your Star Micronics dealer about cartridges or disks for the following:
Prestige fonts Letter Gothic fonts H Gothic fonts Roman fonts Presentation fonts
Optical Character Reader fonts
Line drawing
Bar codes
3.4.4 Using cartridge fonts
To gain access to a font on a cartridge:
1.Slide the cartridge you want into the slot on the front of the printer.
2. Use either the control panel menu or a command from your computer to select the font you want.
Note: Donotinsertorpull cartridgesoutofthe printer whiletheDATA lamp
is ON.
An interesting note about default cartridge fonts: Say you have selected on the control panel menu a cartridge font as your default font. Later you turn offtheprinter.Ifyou slipthe cartridge back inbefore you turn on theprinter again, that font will still be your default font.
3.4.5 How to download fonts
To download fonts from computer disk you’ll need more than a small 64K microcomputer. We recommend at least a 5 12Kcomputer with a couple of disk drives (a hard disk is better).
36
Many commercial font-management programs are now on the market, includingInsightDevelopment’sLaserControl, Blaha Software’sHotLead, SoftCraft’sLaserFonts, and thePCL printer driver in Microsoft’s Windo~)s. Theseutilityprogramshelp you downloadfonts, thenlet youaccess thefonts automatically from your word processor or other programs.
,Most font files on disk that you buy to download into your printer have
Escape sequences right in the file, which simplify the process. Usually all youhavetodois copy thefile fromyourcomputer intoyourprinter(youmust assign a font ID number first). If you download fonts with the MS-DOS COPY utility, make sure to use the COPY /Eloption. That will keep your computer from “interpreting” thedata you send,which sometimesproduces badly shaped characters.
OK, let’s look at a couple of examples.
3.4.6 Downloading a font: example one
Example one is for a computer running just MS-DOS.
Say you’ve bought Hewlett-Packard’s Century Schoolbook fonts and want to download the regular (upright), italics and boldface characters. The HP disk labels for each file are CN 100RPN.R8P, CN 100IPN.R8P and CN1OOBPN.R8P.In case you’re interested, that’s HP’s code for CeNtury,
100decipoints, Regular (or Italic or Bold), ProportioNal, Roman-8 symbol set, Portrait. Oneofthedisksyougetalsocontainsabatchfilenamed DOWNLOAD.BAT. To loadthe regularuprightfontyou make surethe printerisonline, thenafter your computer’s A> prompt you type:
DOWNLOAD CN1OORPN.R8P
When the program asksfor thefontID number you key ina number between Oand 32767. Then when the program asks whether you want the font stored permanently or temporarily you type either P or T (a temporary font disappears if you press the printer’s [RESET] button). Finally the program asks if you want to print a sample of the font and you reply Y or N for yes or no.
37
You then do the same for the italics and boldface files, for example typing for the italics font:
DOWNLOAD CN 100IPN.R8P
The promptswill bethe same,butyouhaveto remember to usedifferent font
ID numbers for the upright, italic and boldface fonts.
3.4.7 Downloading a font: example two
Example two is for a computer running Aldus Corporation’s PageMaker desktop publishing program with Microsoft Windn-t’s.
PageMaker provides a print driver called HPPCL.DRV, and a program called PCLPFM.EXEwhich createsthe data itneedsto printa givenfont. To create font data for your Century Schoolbook fonts, at the A> prompt you type:
PCLPFM CNIOO*.R8P
The asterisk, a “wildcard character”, indicates that PCLPFM is to create a data file for all three fonts — regular, italics and bold. The program asks if youwanttocreateafilecalledAPPNDWIN.INI to append intothe Wiruhws font menu file: type Y for yes.
After PCLPFM has made the font data file, with your word processor open the Window’sfile called WIN.INI and key in the font defaults you want to apply. At the section referring to the HPPCL printer driver, insert the APPNDWIN.INI file you created earlier.
That’s it! From now on your Century Schoolbook fonts will appear on the print menus of all your Wimkwt’sapplications.
With both examples, how you use the fonts depends on your applications
software. As you know, sending commands to change fonts will probably require some experimenting: be patient. These commands are described in the following chapter.
38
The process of downloading a font you’ve designed yourself is not so straightforward. As you can only do this, creating and downloading fonts is described further in chapter 4.
3.4.8 Hints: Managing memory
Printing fancy stuff can be quite cumbersome for your printer. You trade
.
offfancinessagainstspeed:if you optforfewer flourishes, you give your printer breathing room in memory. And that rewards you with faster output. Any of the following will slow down your laser printer:
- text over 20 points,
- lots of lines or patterns,
- graphics,
- macros,
-justified text.
. You may choose to add an optional RAM board to your StarLaserPrinter
4111if you need to download many fonts.
. Alternatively, consider either a software or hardware print spooler if
printingholdsupyourcomputermore than you’d like.A spoolerprovides a separate temporary memory space that holds the documents to be printed, and is particularly handy in a multi-user system.
Some page makeup programs automatically download each font as
needed, then flush that font from printer memory to make room for the next font. This approach can make good sense if you’re sharing your printer with other people in a computer network. It keeps the printer’s RAM from becoming overloaded. However, the downloading time can
significantly slow down your printer’s throughput.
. Moretypically,youwilldownload afont inthe morning(perhaps withthe
MS-DOS COPY command) beforeyouprint yourfirstdocument,and that
fontwillthenstayinthe printer’smemory. If youuse asingledownloaded
font(ormacro) throughouttheday, you will find it mostefficient to keep itinthe laserprinter’smemory. Youdefinitely shoulddownload fontsthis way ifyouusea print spooler.If you’re in anetwork,however, make sure you don’t download duplicate fonts.
. Howmany downloadable fontscan youhave in onedocument?That’s not
soeasy to answer. Mostof yourlaserprinter’s memory isnotavailable for storing fonts, because it has to store each page before printing it, as well as any macros or overlays you are using.
39
I
To see how much memory is available for extra fonts, put the printer offlineand pressthe [TEST] buttonto printa statussheet. Yourprinter will beep and showacontrol panel message if you try to overload its memory by downloading too many fonts. It then will continue printing with the closest available font to that requested.
As a general rule, you can include at least a dozen downloadable fonts in adocument. Added tothe internalfonts,that shouldbeplenty — itdoesn’t make good design to mix many typefaces. A telltale sign of amateurish laser printing is too many fonts in one document. To keep a wide variety of extra fonts in memory, however, many Star LaserPrinter 4111users(especiallythose sharing theprinteron anetwork) prefer to add the optional board with the second megabyte of RAM.
40
m
FW7terControl
Language
A
The Hewlett-Packard LaserJet 111isan earlier kind of laserprinterthan your Star LaserPrinter 4111.You should have no trouble running most popular software packages, as those programs likely can send LaserJet III com­mands.
Becausethe LaserJetIIIisalaserprinter,though, itscommandscan giveyou more control over your Star LaserPrinter 4111than is possiblewith the other built-in command sets. Recognizing that reality, we’ve put examples into
this chapter.
At the end of the chapter we describe how to create and use your own fonts, and also how to save time by writing command macros.

4.1 PRINTER CONTROL LANGUAGE

4.1.1 What do Printer Control Language look like?
The Star LaserPrinter 4111includes a dozen common control codes (such as
<CR> for carriage returns) and single-character Escape sequences (such as
<ESC> E for resetting theprinter). Butall theother commands you can send
your Star LaserPrinter 4111look like this:
<ESC> cc n C
in which the cc prefix is a symbol or two showing the general category of commands to which this one belongs, n is some variable you want to use in this command, and C is the specific command you want performed.
41
Two importantdetailsmakePCL commands. First,allEscape sequencesend with a capital letter. If you don’t make the last character uppercase, your printer won’t know when the Escape sequence ends and will treat following characters as part of the same command.
Second, in PCL commands each number or character you put after the
<ESC? code isan actual ASCII symbol.
For example, the PCL command that sets the right margin to column 65 is:
<ESC> &a 65 M
which you would code in BASIC as:
10 LPRINT CHR$ (27):
“&a65M”
That command sends your printer the symbols “6” a~d “5”, which its
program interprets as the column number.
4.1.2 Combining Escape sequences
Later inthis chapter we describe one way to select a font, byjust specifying what font attributes you want, such as bold or proportional spacing. If you select afontby specifying every one of itsattributes, you can be certain that you’re selectingsuccessfully.But itcould mean a fair bitof repetitivetyping eachtimeyouchooseafont.This appliestoother commandstoo, notjust font selection.
Here’s a way you can save yourself a few keystrokes: type in those commands that have the same command-category prefix as just one long Escape sequence. To combine commands this way, type the <ESC> and command-category prefix just once, and capitalize only the last command character.
42
I
For example, to define the style, weight and character face for the primary font, you might send these command:
<ESC> <ESC> <ESC>
(S 1S (S 7B (S 3T
which would produce italics boldface Courier.But this single command does the same thing, all with one blow:
<ESC>
(S I S 7b 3T

4.2 CONTROLLING THE PRINTER

4.2.1 Self test
You can check how your LaserPrinter 4111is printing and have a look at its
parameter settings by sending this Self Test command:
<ESC>
Notice that the z islowercase;this is the only PCL command that ends with
a small letter. After you send a Self Test command, the printer finishes
printinganypages left initsmemory. Then on a newpage it printsitscurrent
parameters (just important items such asnumber of copies and fonts in use).
The printer finishes off the page with a continuous display of all the
characters in itsdefault font.
Z
The printer also quickly checks its interface. Assuming it finds no trouble,
the printer isthen ready for your next page. If the printer detects a problem
it shows a control panel message, which you can look up h your Star
La.~erPrinter4111OperationsManual.
43
I
4.2.2 Set number of copies
Youcan printupto99 copiesofeachofthepages you sendtothe printer.You may send this command anywhere within the text on a page; it will stay in effect for that and all subsequent pages until you send another such com­mand:
<ESC> &/n X
All you have to do is change the n sign in this command to the number of pages you want. (The tcharacter after the & is a lowercase L.)
4.2.3 Set feed selection
One thing you can do isprint directly on envelopes as well as regular paper. You use this Feed Selectcommand to tell your printer to select either a page or envelope from the multi-purpose tray, or from the cassette (option):
<ESC> &/n H
For n enter one of the numbers from this table:
n
O(zero) the printer only ejects the current page
1(one) theprintertakesitsnextpage from themulti-purpose
2 3 theprinter accepts an envelopeyou feed in manually 4 the printertakes itsnext pagefrom the papercassette
Should an unprinted page be in the printer’s memory when you give this command, the paper for that page will feed from where you’ve indicated. Therefore you can make this the lastcommand on a page. The new feed
setting stays in operation until you change it.
FEED SELECTED
tray the printer takes a regular page manually
4.2.4 Reset
Most software packages automatically reset the printer to the initialdefaults
beforestartingaprintjob. It’sagoodidea foryouto followthe samepractice, just to make sure you get the settings you want.
44
When you want to set all your laser printer’s parameters back to their initial default values (some people call this “initializing” the printer), send this command:
<ESC> E
.The printer will finish printing any pages left in its memory before
resetting the parameters. Resetting clears unneeded temporary fonts from your printer’s memory. Any permanent fonts or macros you have down­loaded, however, will still be there after you send a reset command. Permanent and temporary fonts are described at the end of this chapter’s “Controlling Fonts” section.
4.2.5 Example: Printer controls
Let’s see what happens when we put these commands together. Say you have just turned on your laser printer. What happens when you send the following commands to your printer?
<ESC>
Z
<ESC> E <ESC> &/2h 2X
As a BASIC program these would look like this:
NEW
10 WIDTH “LPT1:“,255 20 LPRINT CHR$ (27);“Z“
30 LPRINT CHR$ (27);“E” 40 LPRINT CHR$ (27);“&12h2X” RUN
First, if it is working properly the printer prints a test print with all the characters in its default font (Courier).
Next the printer sets all itsparameter values— including feed selection and number of copies — to their initial settings.
The last command does two things: it tells the printer to accept paper you
will feed in yourself, and to print each page two times. This is handy when you want two copies of a letter on preprinted letterhead.
45
You can now send your letter from your word processing program to the printerand feed in thosepages. When you’re done, youmay want to sendthe <ESC> E command one more time.

4.3 PAGEORIENTATION

You might reasonably think of page orientation as a page formatting issue.
To print words widthwise on a page, however, each letter in effect has to lie
on itsback. So orientation is actually a font attribute, and is treated as such later on in this chapter.
4,3.1 Page Length
Themulti-purposetray setsthe defaultpage sizefor yourlaser printer.When you want a different size, you’ll need to reset that page size. You should always change the page length be@-e you send text for printing. The Page Length command setsthe number of linesthat can printon a page (lines per inch times the number of inches).
The Page Length command format is:
<ESC> &~n P
wheren isthenumber oftextlineson thepage; itcan be anynumber between 5 and 128.
The default number of lines is the length of the paper tray times 6 lines per
inch.For 11-inchletter-size paper that works out to 66 lines (that’s also the
default when you haven’t put in a tray).
If you don’t want the default length, you should send the Page Length command bejtire you send text for printing. The table below should help you pick theright number of lines. Decide which orientation and paper size you want, then use the n under your preferred lines/inch:
46
ORIENTATION
Portrait Portrait Portrait Portrait
Landscape Landscape Landscape Landscape
PAPERSIZE
Executive Letter A4 Legal Executive Letter A4 Legal
@6LINEs/INcHn @8LINEs/INcH 60 80 66 88 70 93
84
112
43 58 51 49
*
68 66 58
* Printinglandscapes on legalpaper istrickier.First seton portraitmode and
send the command <ESC> &?84P and then change the orientation to landscape.
An example: Say you want to manually print legal-size pages at eight lines per inch.The following commands combine manual feeding with that page le~gth:
<ESC> &t2h 112P
If your command specifies apage length different than the paper in the tray, the printer will go offline and display a message asking for the proper tray. After you change the tray, press the [ON LINE] button to restart the printer. It doesn’t hurt to print short pages on long paper. If you inadvertently print a legal-sizepage onto executive or letter-size paper,the printer will scroll that page across two sheets.
If you have set the paper feeder from the control panel to “AUTO SELEC- TION”, a “select page length” command (<ESC> &/n P) will automatically select the cassette which contains the paper selected by the command. If no cassette currently containsthe right size of paper, the display will ask you to insert the appropriate size of paper.
Also, the Page Length command puts all margins back to their defaults. So after you send it, check whether you have to send any of the following margin-setting commands.
47
I
4.3.2 Side margins
Margin settingsdefine that part of the page on which the printer can print. You setsidemarginstoparticular columns.The width ofa columndiffers for each font, depending on its pitch. Ten-pitch Courier, for example, puts column 30 three inches from the left edge of the page (column 0). But 12­pitch Prestige Elite puts column 30 just two and a half inches in.
You cannot set the left margin further over than the right margin. Use the following command to set the left margin, setting n to be the column number where you want the left margin to start:
<ESC> &a n L
Similarly, to settherightmargin, you send this command with yourdesired column number:
<ESC> &a
If you want to put both left and right margirisback to the printer’s printable limits— in other words, to “clear” the side margins — send this command:
<ESC> 9
?7M
4.3.3 Top margin
Vertically, the LaserPrinter 4111confines its printing to its “text length”,
which shouldalwaysbelessthan itspage length. Both aremeasured inlines.
You can change the meaning of a “line” with line-spacing commands described later in this chapter.
When you set the top margin though, it does not change, even when you change the definition of a line. You can use this command to set the top margin anytime.Justbe aware that ifthecurrent print position isbelow your margin, you’llhave to move the print position back up. Naturally, you have to keep your top margin inside the page-length limit.
Use this command to set the top margin, setting n to be the number of lines down from the top of the page that you want left blank before you start printing:
48
<ESC> &tn E
Note that the character following the “&” is a lowercase “L”.
4.3.4 Textlength and the bottom margin
By default, the LaserPrinter 4111automatically gives you top and bottom marginsofthesamesize.Soyou onlyneed to sendtheText Lengthcommand when you want different top and bottom margins.
If you want adifferent bottom margin, first decide how many text lines will produce the margin you want. Check that they won’t produce a bottom margin lower than the page length. Then send the following Text Length command, entering for
<ESC> &tn F
The Page Length, Top Margin and Text Length commands therefore work together to set the bottom margin:
bottom margin = page length – (top margin + text length).
The bottom margin is called the “perforation region” with printers that use
continuous forms. You normally want to skip the perforations between the
continuous pages, but sometimes you don’t (for example when you print
labels).
}7 your desired number of lines:
Though you likely won’t often want to do it, the Star LaserPrinter 4111will
letyoucompletely ignorethebottommargin too.If youchooseto printbelow the bottom margin, remember that you might lose words or graphics in the unprintable region at the edge of the page. The command looks like this:
<ESC> &?n L
If you want to allow printing below the bottom margin, for n enter O(zero).
But if you want to forbid printing below the margin, which is the default, enter 1 (one).
49
4.3.5 Example: Page
formatting
OK, let’shave ago atformatting a page. The picture of the page we want is
just below. The actual width of the text on the page depends on which font
weuse. Let’splan onusingour 16.66-pitchLine Printerfont ateightlinesper inch.
column10
topmargin.8lines {
column70
textlength=
100 lines
bottommargin. ~
4 lines
pagelength.1
{
.,
I
}
\
occasionalfootnotes
12 lines
As it prints, we also want to permit the occasional one-line footnote below the normal bottommargin.And when we’re finished printing, let’sreset the
side margins so we can switch to our usual font width.
Here are the commands that will produce this format for us:
<ESC> &tl 12P <ESC> &a 10~70M
<ESC> &/8e lOOfOL
(We’ll send our page here.)
<ESC> 9
50

4.4 MOVING THE PRINT POSITION

4.4.1 Many ways to move
The LaserPrinter 4111provides excellent control over the print position — whereyoupoise yourlaser“pen”. carriagereturncommands. Vertically, you can movethe printposition down thepagebyprinting somany linesper inch,orby sending line-feed and half
line-feedcommands. You can move horizontallyor vertically to tab settings
as well.
Those aren’t all. You can also tell the StarLaserPrinter 4111tomove its print position, either vertically or horizontally, in increments of:
1/10, 1/12or 3/50 inch (pitch settings), 1/48or 1/120inch (line or column definitions), 1/300inch (dots), 1/720inch (tenths of a point).
All these commands are described below.
One hintabout moving theprintposition: youcan confuseyourself trying to use more than two different units during the same session. So decide beforehand how precise you need to be in moving the print position, not forgetting any graphics you want to include. Then stick to the unit(s) you choose.
Horizontally,youcan send backspace and
4.4.2 Lines per inch
Thisverticalline-spacingcommand gives you more optionsthanjust the six or eight lines per inch of early printers. Use this command to set how many lines you want in each vertical inch of your page:
<ESC> &/n D
For ~ you enter the number of lines per inch you want — any of: 1,2,3,4,
6,8, 12,16,24 or 48. If you enter a number other than these the printer will ignore the command.
51
I
4.4.3 Defining the space and column
Beforeyouuseprintpositioningcommands, youfirstmay wantto changethe definitions of the line or space (sometimes called “vertical and horizontal motion indexes”, VMI and HMI). These definitionsdon’t actually move the print position. Instead, they define two basic units you can use in print position commands.
What’s important aboutthespace isthat it defines how far theprint position travelsforevery character you print (except for proportionally spaced text). The space can also be thoughtofasthe width of a vertical print column. One column widthisthewidth ofthe spacecharacter in thecurrent font,no matter whether it is monospaced or proportionally spaced.
Occasionally you may want to change space width to override the current pitch setting. Let’s look at an example. The space width comes in units of
l/120th ofaninch,andtheCourierfontcan print 10characters perinch. Each character covers a tenth — 12/120ths— of an inch, so that font’s default space width is 12 units. If we change its space width to 6, each character would half-overlap the one before it.
If you are using <S1>and <SO> to shift between a primary and secondary font, it’s a good idea to change the space width after every shift.
To change the space width you send this command:
,<ESC>&k n H
inwhich forn you can enter a number from O(zero) to 840. A width ofOwill
print characters on top of each other; a width of 840 will print them seven inches apart.
4.4.5 Defining line depth
The linedep[h(sometimescalled the “vertical motion index”)specifies how fardown apagetheprintpositionwill movefor each linefeed. You probably won’t use the line depth as much as lines-per-inch. Line depth can be more precise but it isn’t as easy to calculate. The linedepth comes in multiples of
l/48th of an inch.
52
The important fact about the line depth is that when you change it you are changing the actual meaning of a “line”.
you effectively decrease the number of lines per inch, and increase the page length.
The command you send to set the line depth looks like this:
<ESC> &t’nC
(notethatthe character after the “&” is a lower-case “L”) in which for n you can enter anumber from Oto 336. If n iszero, lines will be printed on top of each other, and if 336, they will be printed 7 inches apart.
When you increase the line depth
4.4.6 Movjng the PRINT posjtjon horizontally
You can use three different units to move the print position horizontally: columns (space-widths), dots (each l/300th of an inch), or tenths of apoint (decipoints). Both columns and decipoints can be fractions to two decimal places,suchas45.75 decipoints—which providesagreatdegree ofaccuracy for graphics applications.
Moreover, for each of these you can move the print position horizontally in
two ways. You can move ah.wlurelyfrom the left edge of the page. Or you can moverelatively,away from the current printposition.To showyou want to move away from the current print position, you put a plus (+) or minus
(–)
sign before the number of units you want to move.
If you send a command that would put the print position outside either side margin, the LaserPrinter 4111will let you do just that. However, you can’t sendtheprintpositionfurtherthan itsprintablelimitsattheedges ofthepage.
4.4.7 Horizontal moves: by columns, decjpojnts
and dots
To move the print position horizontally a number of columns, send the command:
<ESC> &a n C
in which for n you enter the number of columns you wish to move the print
position,
53
So to move to column 45 you send the command:
<ESC> &a 45C
Butto move 45 columns to the right of the current print position, you send:
<ESC> &a +45C
To move theprintposition horizontally acertain number ofdecipoints, send the command:
<ESC> &a n H
inwhichforn you enter thenumberof decipoints you wish tomove the print position(preceded by a+ or– sign ifyou wantto moveaway from thecurrent position).
Youcanmovetheprintpositionhorizontally by dotsboth waystoo. You can move anumberofdots away from the leftedgeofthe page, or you can move a number of dots away from the current print position.
To move horizontally this way, send the command:
<ESC> *p n X
in which for n you put either the number of dots away from the page edge, or (preceded by a + or – sign) the relative number of dots away from the current position.
So to move 20 dots from the left edge you send this command:
<ESC> *p 20x
And to move 20 dots to the left of the current position you send:
<ESC> *p –20x
54
You can also move thecursor 8 columns at a time horizontally by use of the
horizontal tab command. Simply send a tab character:
<HT>
to do this. Reverse tabbing is not possible.
4.4.8 Moving the print position vertically
You can use similarunitstomovetheprint positionvertically: lines,dots, or decipoints. Bothlinesand decipointscan befractions to two decimal places.
You can also move the print position absolutely down from the top edge of thepage, or relati}’ely,away from the current print position. Again, to show you want to move away from the current print position you put a plus (+) or
minus (–) sign before the number of units you want to move.
The important difference about moving vertically up or down is what the printer does when the print position hits thepage top or bottom. Ifyou try to move above the top margin, the print position stays rightat the margin. And if you move the print position down off the page, the page is ejected and printing continues on the next page.
4.4.9 Verticalmoves: bylines, decipoints and dots
To move the print position vertically a certain number of lines, send the command:
<ESC> &a n R
in which for n you enter the number of lines you wish to move the print
position.Sotomoveto line45, measured from the topedge of the page, you
send the command:
<ESC> &a 45R
But to move 45 lines down from the current print position, you send:
<ESC> &a +45R
55
Tomovetheprintpositionvertically acertain number ofdecipoints, sendthe command:
<ESC> &a n V
inwhichforn youenter the number ofdecipoints you wish to move theprint
positiondown (orprecede thenumber with a + or– sign ifyou want to move
up or down from the current position).
Finally, youcan move a number of dotsdown from the topedge of the page, oryoucan move anumber ofdotsupordown from thecurrent printposition. To movetheprintpositionupordown anabsolute orrelativenumber ofdots,
send the command:
<ESC> *p n Y
inwhich for n you puteitherthe absolutenumber ofdots down, or (preceded by a + or – sign) the relative number of dots up or down from the current position.
So to move 20 dots down you send the command:
<ESC> *p 20Y
And to move 20 dots up you send:
<ESC> *p –20Y
4.4.10 Combining move commands
One thing about moving the print position with the above commands isthat they let you think of your page in terms of Cartesian coordinates.
Allwemean isthat youcan combinehorizontal and verticalmovements that use the same units. If you send this command,
<ESC> *p 40x 20Y
the print position will move to a spot40 dots from the left edge of the page
and 20 dots down from the top edge.
56
And if you send this one:
<ESC> &a +40h –20V
the print position will move right 40 decipoints and up 20 decipoints.
.4.4.11Backspace
The Backspacecontrolcode worksexactly as you mightexpect:itmoves the print position one column to the left.
<BS>
Moving theprint position back does notdestroy any characters already sent. In fact, because of that, this command can be quite useful. It lets you superimpose one character over another.
Say you want to indicate a blank space as the letter b with a slash/ through it,an old programming symbol.Just send the b andthen follow itwith <BS> and the slash, and you get this: ~.
4.4.12 Carriage return
The Carriage Return command by itselfonly moves the print position back to the left margin of the line on which it currently sits:
<CR>
If you want the print position to move down a line as well, send a separate Line Feed command each time, or use Define Automatic Line Ends (ex­plained below) to couple these two control codes.
4.4.13 Line feeds
The LineFeedcommand advancesthe printposition oneline downthe page. The meaning of a line is set by the Line Depth command.
To send a line feed just send this control code:
<LF>
57
The Half Line Feed command is the one you want for subscripts. This command moves the print position down the page one half the current line depth:
<ESC> =
To sendareverse HalfLine Feed,moving theprintposition upto letyouprint a superscript, use this command:
<ESC> &a –.5 R
4.4.14 Form feed
This command, like the [PRINT] button, makes the printer advance to a new sheetof paper. When you send the<FF> controlcode you are also tellingthe printer to print all its stored page information. Remember to send this command to make sure any last partial page in your printer’s memory gets printed:
<FF>
4.4.15 Define automatic line endings
When youpresstheCarriageReturnkey whatdo youexpectto happen?Most people think a computer keyboard should work like a typewriter, with a Can-iage Return starting a new line as well.
Butcomputer programs don’t have to stick to that analogy. Some programs
(particularly graphics packages) want a Carriage Return to just move the print position back to the left edge of the page. And they want a Line Feed to move down to a new line without going back to the beginning of the line.
So you can specify exactly how you want <CR>, <LF> and <FF> to work with this command:
<ESC> &k n G
58
I
For n enter one of the numbers from this table:
n O(zero)<CR>, <LF> and <FF> work according to their basic
1(one)
2
3
After you send the command <ESC> &k 2 G for example, every time the printer gets a Line Feed command it will move the print position down and over to the start of the line. When it gets a Form Feed, the printer will also move the print position back to the left.
AUTOMATIC COMMAND
definitions, <CR> will also generate a <LF> (but<LF> and <FF> stay the same), <LF> or <FF> will produce a <CR> too (<CR> by itself won’t change), <CR> generates a <LF> too, and either <LF> or <FF> produces a <CR>.
4.4.16 Autowrap
One nice thing we get used to with a word processing program is not having toworryaboutwords goingpasttherightmargin. We don’thave to listenfor that typewriter bell at the margin any more. This command does pretty much the same thing your word processing programdoes.The importantdifference isthat itdoesnot wrap words. When you turn on Autowrap, if you send too many characters for a line the laser
printer prints the overflow on the next line.
If Autowrap ison, when the printer gets a character that would printbeyond theright margin, itreturnstheprint positionfor thatcharacter back to theleft and one line down (Carriage Return and Line Feed).
The Autowrap command works like a toggle switch:
<ESC>
If for n you enter O(zero) then this wrap-around mode will apply.
But if for n you put 1 (one) this automatic wrapping of characters will not happen. The default if you don’t send a command is no wrapping.
&S n C
59
Note: Even when Autowrap is on, the printer will print beyond the right
margin if you have sent one of the direct positioning commands described above, which move the print position past the margin.
Also, note that Autowrap doesn’t move the whole word down to the next line— that’s ajob for a word processor, not your laser printer.
4.4.17 Pushing and popping the print position
This provides a wonderful way to keep track of the print position. It works by letting you keep a list of up to 20 print positions.
You can “push” the current print position onto the top of the list whenever you want. Later, you can “pop” off whatever position is at the top of the list, making it the current print position.
When would you want to save and restore print positions this way? When­ever you “needto interrupt what 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 onevery page, andanotherthatundercertain circumstances printstwoheavy lines.You printmerrilyalonguntilyou haveto print thelines. Youthen push
the current print position to execute the line-printing routine.
Butpartway through thatyouhitthepage-number spot.Soyou pushtheprint 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 n S
Fern youenter Otopush(save) thecurrent printposition,or 1topop (restore) the last position saved off the list.
60
Note: The last position pushed onto the list will always be the first one
popped back later.

4.5 CONTROLLING FONTS

4.5.1 Font selection
The Star LaserPrinter 4111lets you define and select fonts three ways: as primary and secondary fonts, or by font identification number, or by description.We’ll lookatthefirst two waysnow, and explain selectingafont by its attributes a little further on.
However youchoosetorefertofonts, remember thata fontmust beavailable 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.
4.5.2 Selecting primary or secondary fonts
Ofthethree selection methods, you will savethe most programming time by shifting back 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
between two different symbol sets— for example IBM symbol sets 1and 2. Youcandesignateany two fonts,whether internal,cartridge ordownloaded,
as primary and secondary.
The wayyoushow you’retalking aboutaprimary font inanEscape sequence is to follow the <ESC> symbol with a left parenthesis. For example,
<ESC>
means you want your primary font pitched at ten characters to the inch. Typing a right parenthesis instead means you are referring to the secondary font:
<ESC>
You define a font as primary or secondary as you select it. To make a font your primary or secondary font, you use font-description Escape sequences such as those just above, specifying the attributes you want.
(S 10H
)S 10H
61
!
If you don’t explicitly indicate what attributes you want for the primary or
secondary font, the printer will use the same default font for both. This
default font’s attributes include the Roman-8 symbol set, 10-pitchspacing,
12-pointheight, upright style, medium weight, and Courier typeface.
After your primary fontisselected, you can choose itforprinting by sending
this Shift In control code:
<S1>
All the text you send after that command will print in the primary font.
Your laser printer shifts to the secondary font when you send this Shift Out
code:
<so>
4.5.3 Assigning font ID numbers
The second way to define and select fonts is by using font ID numbers. You
may prefer this method ifyou frequently use many fonts. While not as short
as<S1>and <SO>, it’s quicker than describing font attributes over and over
again.
To give an ID number to an internal or cartridge font, you first make it the
primary font. That is, you send a left-parenthesis Escape sequence (a font
attribute,command as described below) and the Shift In control code. Then,
to assign an ID number to the font, you send this command:
<ESC>
Fornyoucanenteranynumberbetween Oand32767asthe font IDnumber.
(Not that you can have more than 64 fonts in the printer at once, even with
theoptionalmemory board. A printer would need an elephantinememory to
hold 32767 fonts!)
62
*C H D
4.5.4 Selecting downloaded fonts
Theeasiestway to selectamongdownloaded fontsisto usefont ID numbers.
When you download a font you make the Assign Font ID command above thefirst command in yoursequence(see “How to download yourown fonts” later in this chapter). After you’ve assigned an ID number to a downloaded font,youcanselect itasyourprimary font withthisSelect FontID command:
<ESC> ( n X
in which n is your desired font’s ID number.
If you use many fonts you’ll use that command to select among them. But what if you prefer to just use <S1>or <SO> to shift between primary and secondaryfonts? You wantto select adownloaded font IDas yoursecondary font. This is the command to send:
<ESC> ) rIX
4.5.5 Font attributes
The third way to select a font is to simply describe what font attributes you want.(Remember, selecting afontdoes notmodify afont. You can’tgetbold or 14-pointcharacters ifyoudon’t havea boldor 14-pointfont intheprinter.)
In listingtheattributesyou want, it willhelp youto prioritize them the same way yourLaserPrinter 4111does. Your printer ranks the various attributes a font can have this way (from most to least important):
orientation
symbol set
spacing (proportional or monospaced)
pitch (characters per inch)
font height (in points)
style (italic or upright)
stroke weight (light to bold)
typeface
The laser printer just zips down this chain of attributes one by one,
eliminating fonts that don’t match what you want, until it gets down to one
unique font that matches your request. If the printer matches down to, say,
styleor weight but can go no further, it will give you itsclosest font to your
request.
And if you don’t specify a particular value for some attribute, the printer
assume’syou want the value that attribute had in the last font you specified
(or the default value if you‘vejust turned on the printer). This can save you
someeffort: ifthefontyou want has an attributethe same as thecurrent font,
you don’t have to specify that attribute again.
Orientation
Portrait orientation prints text across the width of a page. Landscape orientation prints text sideways up the length of a page.
The Star LaserPrinter 4111ismore flexibleaboutorientation than most other
laser printers; it lets you simply rotate any portrait font to the landscape
orientation or vice versa. To start you off when you change orientation, the
printer resets all its margins and its column and line definitions to their
default settings.
When you want to select the opposite orientation, send this command:
<ESC>&t’n O
in which’for n you put Oto get portrait orientation,
1to get landscape orientation, 2 to get upside-down portrait orientation, or 3 to get upside-down landscape orientation.
(Notice: the t’characterafter the& is a lowercase L.)
64
To select the direction in which characters, raster graphics and fill patterns are printed, use the following command:
<ESC>&a n P
in which for n you put Oto select the portrait direction,
90 to select the landscape direction,
180to select the upside-down portrait direction, and 270to selecttheupside-down landscape direc­tion.
Symbol sets: a review
Each font can havemany symbol sets, each being a subsetof all the possible characters of the font. These subgroups include different symbols for differentnationsorfor lawyers orartistsor mathematicians. Any two symbol sets, moreover, may store the same symbol at a different font position in the printer’s memory.
The defaultsymbolsetisRoman-8, which includesall ASCII characters plus dozens of accented letters. But you can use any of the sets shown below. Technically you can pair any symbol set with any internal, cartridge or downloaded font; however it doesn’t make much sense to print text with a math or line-drawing symbol set.
TheStarLaserPrinter4111provides twodifferent symbol setcommands. You put a code into one command to select aparticular symbol set for your pri-
mary or secondary font. You use the other command to select the current or
default symbol set for your primary or secondary font.
Selecting a symbol set
This first symbol setcommand lets you select a particular symbol set for the current font. To select a symbol set for your primary font, send this command:
<ESC> ( n
For n enter one of the following symbol codes. The first character must be a digit and the second an uppercase letter.
65
I
Note: The symbol sets marked with * can select when the approval Font
Cartridge is installed.
CODEn OA OB OD OE OF OG 01 OK ON 00 OQ 0s Ou OY
ID IE IF IG 10 IQ IS
IU 2K 2Q 2s 2U 3Q 3s
4s
5M 5s 6J 6M
6S
7J 8M 8Q 8U
;
9U
SYMBOLSET Math-7symbols*
Line Draw characters*
1S060:Norwegian RomanExtension* ISO25:French HPGerman 1S0 15:Italian
1S0 14:JISASCII ECMA-94 OCR-A*
Math-8Asymbols* ISO 11:Swedish 1S06: USASCII BarCode39* 1S061:Norwegian
1S04: UK 1S069:French 1S021:German OCR-B* Math-8Bsymbols* HPSpanish Legal 1S057:Chinese Pifont-Asymbols* 1S0 17:Spanish 1S02:IRV OCR-BExtension* 1S0 10:Swedish 1S0 16:Portuguese PSMath ISO84:Portuguese MicrosoftPublishing VenturaMath 1S085:Spanish DeskTop Math-8symbols IBM-PCSet* Roman-8 BarCodeEAN/UPC* IBM-PCExtension* Windows
66
10J 10U
1IQ
IIU
12u 13J 14J
15U
PSText IBM-PC(US) ECMA-947Bit* IBM-PC(Denmark/Norway) PC-850 VenturaInternational VenturaUS Pifontsymbols
To select a symbol set code for your secondary font, flip the parenthesis:
<ESC> ) n
and for n substitute your choice from the codes above.
Selecting the current or default symbol set
Your printer can use either the primary or the secondary font as its current font. And that current font has its current symbol set. Your printer also remembers its default font and symbol set, which are Courier with Roman­8 (unless you’ve changed their initial parameter values through the control
panel menu).
The following command lets you select one of those symbol sets for your primary font.
<ESC> ( n @
For n enter one of the following selection values for your primary font:
n VALUE O(zero) or 1(one)
SELECTION Selects the default symbol set
2 Selects the current font’s symbol set (this
forcestheprinterto selectitsbestmatching font)
3
Selects all of the default font’s attributes (notjust symbol set)
. Similarly, you can selecteitherthedefault or the current symbol setfor your
secondary font. You also may want to use the same symbol set for both primary and secondary fonts.
67
To do these tasks, you can send the following command to select which symbol set you want for your secondary font:
<ESC> ) n @
For n enter one of the values from this table:
n VALUE SELECTION O(zero)
1(one) 2 Selects the current font’s symbol set 3
Selects the default symbol set Selects same symbol set as primary font
Selects all the default font’s attributes (not just symbol set)
Example: Symbol set commands
Let’s take a shortlookat how you use these commands. Here’s the scenario:
You are already using theLine Printer typeface, but want to use the German symbolset asyouarewritingareport for your Berlin office and need umlaut
characters for several names in the report.
Then in the report you decide to use a proprietary product name, so want to nipoutto grab the @symbolon a legalcartridge font you’ve already loaded, then return to your German set. When your report’s all done, you want to return the printer to its Roman-8 default.
Here arethe commands that will do the job for us:
<ESC> ( OG
(you start your report here)
<ESC> ( IU @ <ESC> ( OG
(you finish your report here)
<ESC> ( O@
Ifyouhad finished with <ESC> ( 3@ theprinter wouldreturn to itsstandard Courier font, notjust its Roman-8 symbol set.
68
Spacing
If you specify monospaced for a font, each character prints with the same width. But if you specify proportional spacing the design of each character determines itswidth.To definehow youwant yourprimary fontspaced, send this command:
<ESC>
(S n P
in which for n you put O(zero) to get monospaced,
or 1 (one) to get proportional spacing.
Ifyouspecifyproportionalspacing itdoesn’tmatter ifyou also specifypitch, because spacingisahigher priority fontattribute.The printer willjust ignore the pitch request.
Todefinespacingforyoursecondaryfont, usethesame numbersandjust flip the parenthesis:
<ESC>
)S n P
Pitch
Pitch defines how many characters per inch you want for a monospaced­pitch font. Your Star LaserPrinter 4111’sinternal monospaced-pitch fonts havesettingsof 10,12or 16.66charactersper inch. Cartridgeor downloaded fonts with monospaced pitches often have other settings for characters per inch.
To select the pitch you want for the primary font, send this command:
<ESC>
(S n H
where for nyouput inhowmany characters per inchyou want. For example, <ESC> (s 12Hwill pack twelve characters into each inch.
The corresponding pitch command for the secondary font is:
<ESC>
)S n H
69
Youcan useadifferentcommand insteadof these forgeneral character pitch setting. This command, since it doesn’t have parentheses, covers both the
primary and secondary fonts. It looks like this:
<ESC> &k n S
For n you enter a pitch code from the following table:
CHARACTERS PER INCH
10
cpi (pica) O(zero)
16.66cpi (condensed)
PITCH CODE n
2
Font height
The height of the characters you print is measured in point sizes. The Star LaserPrinter4111providesfonts in6,7,8.5, 10, 12,14,16, 18,24and 36point sizes. If the font height you specifically ask for is not available, the printer will select the font with the size closest to your request.
To select font height for the primary font use the following command. For n enter the font height in points that you want:
<ESC>
(S n V
To select font height for the secondary font, send this command:
<ESC>
)S n V
Style
Styledefineswhether your text is printed in italicsor upright, the way these words are. Send this command to select the style you want for the primary font:
<ESC>
(S n S
in which for n you
70
enter
Oifyou want normal upright text, or 1if you want italics.
To select styleforthesecondaryfont,just reverse theparenthesis and usethe same n numbers:
<ESC>
)S n S
Remember that style isarelatively low-priority attribute. If a particular font satisfiesallhigher priority attributes butdoesn’t come inthe style you want, you’ll get that font without your style.
Stroke weight
The weight of a font defines how lightly or boldly it prints.
You can be flexible aboutstrokeweight. The following command gives you arange of 15degrees of boldness, though not many fonts exploit that range.
Send thiscommand toselecta primary font with yourdesired strokeweight:
<ESC>
in which you replace n with a number from –7 (meaning light) to +7 (very bold). You need the negative sign to get the lighter weights. A weight of O (zero) produces medium print.
To selectthe strokeweightfor thesecondary font,usethe samenumbers with this command:
(S n B
<ESC>
)S n B
An incidental note: You will likely use optional fonts to give you boldface,
so probably don’t need to know this. But it’s possible to print bold without even havingabold fontintheprinter.Youjust printthe textyou want inbold two times, with the overprint offset by 4 decipoints.
So you can use the command <ESC> &a n H to back up, you just need to knowthewidth indecipointsofwhatyou wanttooverprint.In amonospaced­pitch font like Courier that’s easy: just keep track of how many characters you print. In a proportionalfontyou’d keep track of the decipoints by using acharacter-width table. After backing up4 decipointsless than thetotal text width youjust print your text again.
71
Typeface
The lastattributeyou can give to characters is their typeface. The design of characters iswhat font designers often think of as the main determinant for
afont.But when you select a laser printer font, typeface sits atthe bottom of
the list.
To assign the particular face you want for your primary font, send this command:
<ESC>
(S n T
For n enter one of the font code numbers from this table:
TYPEFACE Line printer
Pica Elite Courier
H-Gothic Roman L-Gothic
Script Prestige Caslon Orator Presentation Line Draw PC Line OCR Bar Code
n O(zero)
1(one) 2 3 4 5 6 7 8 9
10
11 12 13 14 15
To assign a character face tothesecondary font,just flip the parenthesis and use the same n numbers:
72
<ESC>
)S M T
Example: Font attributes
Let’s put the last half dozen font attributes together in an example. Say we want to select a nice font — a small Line Printer — for the footnotes in a reportwe’vefinished.Let’smake itour secondary font,since’thebodyofour report is done in the primary font.
We’llgo withthedefaultsfororientation and symbolset.Butlet’sbespecific about the other attributes, and let’s remember to put them in priority order.
We decide on amonospacedof 16.66characters per inchand a heightofjust seven points (footnotes should look smaller than our regular text). To keep it readable, we opt for the ordinary upright style and medium weight in the LinePrintertypeface.Our sequenceofindividualcommandswould looklike this:
<ESC> <ESC> <ESC> <ESC> <ESC>
<ESC>
)S OP
)S 16.66H )S 8.5V )S OS )S OB )S OT
Since these font attributes all start with the same )s command-category prefix, let put them all together in one command:
<ESC>
)S op 16.66h 8.5v os ObOT
The BASIC statement we could send to select our desired font would look like this:
100 LPRINT CHR$ (27);“)
And assuning we have such a font in our printer, we’d get a font that looks
ke this sentence for our footnotes.
1i
sopl 6. 66h8 .5vOsObOT”
73
4.5.6 Underline
Underlining is printing feature, not a font attribute.
You can
character. If you backspace and use the underline character, however, you
often find the underline doesn’t come out the same length as your text.
The underline command works better. When you turn on the underline
feature this way, the printer will underline all subsequent printable charac­ters, including spaces.
Send this command to turn on the underlining mode:
in which for n you put
And send this command to turn off the underline mode:
underline in two ways: as a print feature, or with the – underline
<ESC> &d n D
O(zero) to get fixed underline,
or 3 to get floating underline.
<ESC> &d@
4.5.7 How toprint Escape sequences and control codes
You use both Escape sequences and control codes to print. So how do you
print Escape sequences and control codes?
Butyou actually can print commands, and in two different ways. You would do this when you wantto see everything exactly as it is sent to the printer— for example, to debug a string of text and commands that doesn’t print the way you think it should.
The Transparent print command prints the string of data that follows it without paying attention to any embedded Escape sequences or control codes. Transparent print even prints Carriage Return codes withoutzapping the”print position back to the left margin.
74
To useTransparent print,just putthiscommand immediatelyinfront ofyour print data:
<ESC> &p n X
For n you specify the number of bytes of data you want to print .
Display Functions, like the Transparent print command, prints Escape
sequences and control codes without actually executing them. But Display Functionspaysattentionto CarriageReturn codes, sotextlooksmorelikethe way it normally prints. Display Functions also prints commands as blanks, not as symbols.
Display Functionsactually involvestwo Escape sequences,one to turn iton and another to turn itoff. To turn on Display Functions, send this command
just before the data you want displayed:
<ESC> Y
And to turn off Display Functions, send this command at the end of the displayed print data:
<ESC> Z
That Escape Z sequence itself prints as a blank followed by a Z.
4.5.8 Font control
The FontControlcommand has two main functions:defining a font’sstatus,
and deleting fonts.
You can make a font either permanent or temporary with the Font Control
command.Thishelpsyoucontrolwhich fonts youdelete, aspermanent fonts do not get deleted when you reset the system. The permanent or temporary
statusyou give to a font will apply only to the font you last specified, using
one of the font ID commands described above. When your printer’s memory gets stuffed with fonts, you can also use this command to delete some of them. You can only delete fonts you’ve downloaded,as internalandcartridge fontsareneverdeleted. Notext willget
lost when you delete a font, even when that font is on an unprinted page in
the printer’s memory.
75
I
To control fonts you send this command:
<ESC>
For n enter one of the numbers from this table of functions:
.n
O(zero)
1(one)
2
3
4
5 ~.
A bit of explanation about that last function 6: When you give a font ID to anyfont you first need a temporary copy of that font in memory. That copy isalready there for downloaded fonts. But you willneed function 6 to create a temporary copy of an internal or cartridge font.
Here’s how to assign ID numbers to an internal or cartridge font. You first
selectthefont,then send the Font ID command to give it an ID number, and finally copy the font into memory with Font Control function 6. If you want thatcopyto stayinRAM when youreset theprinter,you concludeby sending Font Control function 5.
*C r?F
FUNCTION Delete all temporary and permanent fonts Delete all temporary fonts (another way to delete all temporary fonts is to send a reset command) Deletejust thefont withthemostrecently specified ID Delete just the last character of the font you have downloaded Make the current font ID temporary Make the current font ID permanent Make a temporary copy of the current font
4.5.9 Example: Controlling fonts
Let see how those last few commands work. translated into BASIC.
Pretendyouwanttomake ashorttestwith yourcurrent font(itdoesn’tmatter whatitis):youwantto printwhat’sinASCII tablepositions 128through 130. There’s nothing there in your normal Roman-8 symbol set, but some other
sets keep control codes or international characters there.
76
Assuming you like what you see printed from those ASCII positions, you then want to make that current font permanent. Finally, you also want to dump all the temporary fonts from printer memory to make room for some graphics you’ll be printing.
Let’s start with a reset and an underlined heading for your test print:
100 LPRINT CHR$ (27);“E” ; 110 LPRINT CHR$ (27);“&dOD” : 120 LPRINT “Underlined heading for test print
of ASCII 128 130“; 130 LPRINT CHR$ (27);“&d@” 140 LPRINT CHR$ (27);“&p3x” : 150 LPRINT CHR$ (128) ;CHR$ (129) ;CHR$ (130) ; 160 LPRINT CHR$ (12); 170 LPRINT CHR$ (27):“*C5flF”;
Line 100isjust the <ESC> Eresetcommand. Lines 110and 130turn on and off the underline feature.
Line 140 turns on transparent printing, which forces printing even for normally unprintable control codes. The three bytes you want to print are in line 150.To see what’s there, you send a form feed command in line 160.
And finally,line 170uses thefontcontrol command to make thecurrent font permanent and then delete all temporary fonts.
.
77
4.5.10 Example: Assigning font numbers
Now let’s do a program in BASIC. First we’ll assign font numbers to the Courier and Line Printer resident fonts and to a cartridge font, IBM PC Courier. Then we’ll print samples of each font.
100 LPRINT CHR$ (27) ;“(8U” ;
110 LPRINT CHR$ (27);“ 120 LPRINT CHR$ (15); 130 LPRINT CHR$ (27);“*cID” ;
140 LPRINT CHR$ (27);“*c6F” ; 150 LPRINT CHR$ (27);“(8U”; 160 LPRINT CHR$ (27);“(sOp16.66h7vOsObOT” ; 170 LPRINT CHR$ (15); 180 LPRINT CHR$ (27);“*c2D”; 190 LPRINT CHR$ (27);“*c6F”; 200 LPRINT CHR$ (27);“(1OU”; 210 LPRINT CHR$ (27);“(sOp10h12vOsOb3T” ; 220 LPRINT CHR$(15) ; 230 LPRINT CHR$ (27):“*c3D”;
240 LPRINT CHR$ (27);“*c6F”; 250 LPRINT CHR$ (27);“lX”; 260 LPRINT “Font 1 Resident Courier” 270 LPRINT CHR$ (27);“(2X”; 280 LPRINT “Font 2 - Resident Line Printer” 290 LPRINT CHR$(27);’’(3X”; 300 LPRINT “Font 3 310 LPRINT CHR$ (27);“(lX”; 320 LPRINT CHR$(12)
(sOP1Ohl2vOsOb3T” ;
Cartridge PC Courier”
Line 100and llOcallstheintemal Courier font and line 120makes itthe primary font. Line 130 gives it font ID number I, and line 140makes it temporary.
Lines 150through 190do the same thing forthe Line Printer font, andlines 200 through 240forthecartridge font. Notice thatthecartridge fonthasthe IBM symbol setcode 10U.
Lines 250through 300printout samples ofthethree fonts. Finally, line310
resets thedefaultto ourintemal Courierfont, andline320 performsthe final form feed to print the page.
78

4.6 USING YOUR OWN FONTS

4.6.1 Font design is tedious
A warning: font design is an art. Don’t expect to turn out professional­looking fonts in a few hours.
Sometimes, though, you have to build your own typeface, even if you don’t work with a company in the font-selling business. You may, for example, want to print your own customized company logo. It means building up characters within a cell or grid, perhaps 50 dots high and 35 wide — lots of dots.
Becausedefiningyourown typefaceis sotedious,make sureyou’vechecked out as many downloadable fonts as you can find from font development companies.
Thenexthandiestwaytodothejob istoask around,maybe whereyou bought your LaserPrinter 4111,to see if you can get one of the font-creating orfont­editingutilityprograms nowon themarket. FonrGenIV+ isone.Keep aneye out, too, for new word processing tools that might save you the trouble of painstakingly figuring out details like kerning.
Even with aids like these, building a custom font is an intricate process. It calls for the creation of a family of up to 200 characters sharing a common design and proportional scheme, and that’sjust for one type size. No mean feat.
4.6.2 How to download your own fonts
Characters that you define and store yourself are called “user-defined” characters. Let assumeyoualreadyknow what text isto be inyour custom font, and have designed its type’face,weight, width and style. Once you’ve created your own characters. you’ll need to download them to your laser printer.
79
The process of downloading a font you’ve designed yourself is somewhat
detailed.To download your font, you follow the following steps:
1 ) assign a font ID number to your font,
2) download a font header,
3) identify the position of each character to be downloaded,
4) send a character descriptor and bit map for each character,
5) specify whether the file is to be permanent or temporary.
1)Assigning afont ID to yourfont
Toassignan ID to yourfont, you sendthiscommand (described aboveunder “AssigningfontID numbers”) withan IDnumber fern between Oand32767:
<ESC> *c n D
Before sending that command though, check whether the ID number is alreadyallocatedtoanother font.Ifit is,thatexistingfontwillbe deletedwith the next command.
2) Downloading a headerfor yourfont
Even if the printer doesn’t have enough memory to create your font, it will delete any existing font with the same ID number when you download the headerfor your font.
A font’s header is the list of its attributes, which your printer uses to select that font. Each font header, 26 bytes long, is stored at the front of the font. You send a font header command to your printerjust before you download the font’s characters.
The header command looks like this:
<ESC>
and must be followed immediately by the data describing the font’s at­tributes.The n value istheactual number ofbytes ofdescription data, almost always26. Note: unlikeothercommands, you mustenter theASCII symbols 2 and6 here, not the number 26.
80
)S n W
Here’s a typical font header command:
<ESC>)s26WO<SUB>OIOOO<RS>O<RS>O2OOl<FF>OdOaOOOO<ETX>
Aside from the actual command at the front, the rest looks like gobbledy­gook? But there’s 26 bytes there, each one an ASCII character, each one specifying a particular font attribute. (The enclosed items with brackets are single ASCII characters that happen to be control codes.)
Each byte in the header is a number, which you send as whatever symbol happenstobestoredatthatnumericpositionin theASCII table.Codingsome of these numbers istricky, however, and we recommend you ask your Star Micronics dealer to help you build your font header. To get you started, the table below shows what each of those bytes means:
BYTE
o-1
2 3 4-5 6-7 8 9
10 11 12 13 14-15 16-17
18-19 20-22 23 24 25
MEANING header length blank font size blank baseline position for characters blank cell width blank cell height orientation spacing symbol set pitch line spacing blank style stroke weight typeface
81
P e c y f
Before you download each character you have to tell the printer where in its font table to put it. You indicate where by sending this command:
<ESC>
*C n E
For n you put the decimal number, between Oand 255, of the position in the
font table where you want your character stored.
Your printer’s font table isjust like the ASCII table. Before you send each character, sayg, you have to saywhereyou want to putit. In theASCII table, g is at decimal position 103.So you send this command:
<ESC>
*C 103 E
And immediately after it you send the bits that make up the character g.
D e c y f
The next step is to describe each of your characters, “mapping” where you
want each dot to go. Send this command before each character:
<ESC>
For Hyou enter the number of bytes you’ll be sending after this command, to describe and map your character. Sixteen bytes are needed for the description; the bit-map takes as many bytes as you’ve put into each character cell — perhaps two or three hundred bytes.
(S n W
As with the font header, each byte in the character description is a number, sent as the symbol at that position in the ASCII table. Coding character descriptions is tricky too, so again we recommend you ask your Star Micronics dealer for help. The table below shows what the bytes in the
character description mean:
82
BYTE o
1 2 3 4 5 6-7
8-9
10-11 12-13 14-15
Thebit mapof thecharacter isjust the patternof dotsinthe character, starting
at the top left of itscell. You work your way across the cell and down to the
bottom right, giving each dot a value of Oif it’s not to be printed and 1if it
is. Then you group those dots as 8-bit bytes.
MEANING description length blank always 14 always 1 orientation blank left offset (blank space to left of character) top offset (blank space above character) character width character height print position travel (proportional spacing only)
P t
The last step indownloading your own font is to makethe font permanent or temporary, using the Font Control command described earlier. The com­mand <ESC> *c 4 F will allow the font to be erased when you reset the printer. But the command <ESC>*C5 F will keep your font available even after you reset the printer.
83
R G
The Star LaserPrinter 4111offers raster graphics (sometimes called “bit­mapped graphics”), which specify each dot in a graphics pattern. Be aware, though, that adding graphic elements always slows up printing with laser printers.
The following stepsshouldbeperformed (inthe order shown)when printing raster graphics:
1) Define the resolution
2) Set the orientation of the graphic image
3) Issue the command to start graphics
4) Issue the command to set the compression technique (if any) of the graphical data
5) Send the commands which transfer the graphics data
6) Send the command to end graphics.
D r
Before graphics are sent to the printer, the resolution must be set. This is achieved using the following command:
<ESC> *t
Ifthe valueofn isgreaterthan 150,the resolutionof the finalgraphics image willbe 300dotsper inch (dpi); ifn is from 101to 150,theresolution will be
150dpi;‘ifn is from 76 to 100,the resolution will be 100dpi; and if n is 75 or less, the resolution will be 75 dpi. The default resolution is 75 dots per inch. After graphics have started, the printer will ignore any resolution command until it receives the command to end graphics.
77R
o g i
To settheorientationofthegraphic image, transmitthefollowing command:
<ESC> *r n F
where n can take a value of either Oor 3. When the value of n is O,raster graphicsprintingwilltakeplace inthe logicalpage orientation,and when the valueof n is 3,rastergraphics will be printed along the width of thephysical
page, regardless of the logical page orientation.
84
I c s g
The command to start graphics must be transmitted next. The command is:
<ESC> *r n A
wheren cantake avalueofeither Oor 1.IfyouenterO,themargin forgraphics willbesetat the left-mostprintableedge of the page (not thesame as the left margin for text). But ifyou enter 1,the margin for graphics will be set at the column of thecurrent print position, and your image will appear only to the right of that graphics margin.
I c c t
a g d
Three graphicdata compression formats are available for data transfer. The data compression format to be used is selected using the following com-
mand:
<ESC> *b n M
where n can take the value O, 1or 2. Any other value is interpreted as O.A full discussion of data compression technique is outside the scope of this manual, but a brief explanation of this command should be useful.
Where n = O,no encoding takes place, and a simple binary transfer takes place. Bit 7 of the first bytecorresponds to the first dot in a raster row, bit 6 to the second, and so on.
Where n = 1, run-length encoding takes place. This is a compression technique where the data is divided into pairs; the first byte of each pair serving as the repetition count for the data in the second pair. If the first byteofthe pair isequal to zero,thedata inthe second byteis notrepeated.
Where n = conforming to rev. 4.0 standards. The demands of space do not allow a detailed discussion of TIFF standards here, but briefly, TIFF files com­bine features of non-encoded and non-encoded files. Many proprietary graphics packages use TIFF encoding when storing and transmitting graphic data.
2, the data to follow is in Tagged Image File Format (TIFF)
85
I
S c w t g d
When transferring raster graphics data, each line of raster data must be prefixed by the command:
<ESC> *b n W
wheren givesthenumberofdatabytesto follow(the maximum is255before anothersuchcommand issent). Thisdata must followthe compression rules set in the previous command. For instance, a TIFF image interpreted in any way other than the TIFF format will produce very strange results! Repeat sending lines of graphics data, prefixed by the above command, until the whole image has been transmitted.
S c g
To signaltheendofgraphicdatatransmission,send thefollowingcommand:
<ESC> *r B
There are no parameters. The LaserPrinter 4111is now in text mode.
A pro,grainminghint:move your print position in dot increments whenever
you’re dealing with graphics. It’s easier than trying to calculate column-
widths or decipoints.
The Raster Heightcommand specifiesthe height in pixels of the next raster
graphic (between the start graphics and stop graphics commands).
<ESC> *r n T
The valueof n mustbenon-negative;if necessary, itis truncated to thevalue
of (logical page length) - (y coordinate of cursor). This command causes all
raster rows after the specified height to be clipped (disregarded), even if n =
O.It forced the cursor position to advance vertically by n rows, even if less
than n rows are transferred. The area maps to either opaque or transparent
depending on the source transparency mode.
86
The Raster Width command specifies the width in pixels of the next raster graphic.
<ESC> *r n S
The value ofn must be non-negative;ifnecessary it istruncated to thevalue of (logical page width) - (x coordinate of cursor). It will clip all raster rows longerthan thespecifiedwidth,even if n =O.It willpad any row shorter than thespecifiedwidth with zeros.Thearea maps to eitheropaque ortransparent depending on the source transparency mode.
The default valueisthewidthorlengthof thelogicalpage, depending onthe orientation. The command is ignored when received between start and end raster graphics commands or if n is negative.
The Raster Y Offset command advances the verticalposition and is ignored when not in the raster mode.
<ESC> *b n Y
If n isnegative or ifthenew position would exceed the current raster height or the page limit, it is ignored.
P G
TheStarLaserPrinter4111alsoprintspa~rerngraphic~,which printslinesand patterned blocks. Print shops call lines of any thickness rules. A printed line in fact is a rec­tangulararea with one“skinny”dimension, fromone to manydots thick.We will use the word “rules” too, to avoid confusion with the lines used to measure pages.
You follow these three steps when you use rule and pattern graphics:
1 ) Define the dimensions you need.
2)Choosethegraphicspattern you want to fill in those dimensions.
3) Print the pattern.
Remember to send the following rule or pattern commands in that order.
87
4 D r o p d
Definingthedimensions ofthe areayou want to filljust meansindicating the
horizontaland vertical sizeofthepattern, or therule’s length and thickness.
You can indicate dimensions in either dots or decipoints (tenths of a point).
At 300 dotsor 720 decipoints to the inch, decipoint measurements are more
accurate.Theprinterconvertsdecipointvaluesintodots, using2.4decipoints
tothedot.Itroundsupfractionstothe nextinteger. So 1225decipointswould
work out to 510.4 dots, and the printer rounds this up to
Your dimension commands specify an area to the right and down from the currentprintposition. Ifyoudefine an area larger than thepage, your printer will accept thecommand. It will, however, cut off your pattern or rule at the boundaries of the page’s printable area.
When the printer finishes its print “map” of your rule or pattern, the print position automatically returns to the spot from which you started. That means, for instance, that you can make a lightly shaded rectangle and then startprintingtext right over it. This kind of box can be useful for setting off particular information from the main body of your text.
Horizontally,youcan specify therule lengthorhorizontalpattern size indots with this command:
511dots.
<ESC>
*C n A
in which for n you enter how many dotsacross the page you want the rule or pattern to be.
Alternatively, to specify the horizontal dimension for a rule or pattern in decipoints, you can print this command:
<ESC>
*C n H
in which n is the horizontal rule or pattern size in decipoints,
Vertically, you can indicate the size of your rule or pattern in dots with this
command:
<ESC>
*C n B
88
inwhich n isthenumberofdotsdefiningthe thicknessoftherule orthedepth
of the pattern.
Alternatively, to show the vertical dimension in decipoints, you send this command:
<ESC> *c n V
in which n is thenumberofdecipoints intherule’s thickness or thepattern’s vertical length.
4 C a p a r o p
You need the next five commands to choose and print the particular pattern you want to fill your defined area. These commands work together.
With thePrintPatterncommand (which actually comes second)you specify whetheryouwant to fillyourrectangulararea with a solidblackrule, afinely dottedgray-scale pattern,ora predefine linearpattern.And withtheSpecify Pattern command you can indicatewhich you want. You always send the Specify Pattern command before the Print Pattern command, even if you want a solid black rule.
To indicate the particular pattern you want, send the following command. The general meaning of then value you enter actually depends on the com­mand you put after this:
particular dotted or linear pattern
<ESC>
If you want a solid black rule it doesn’t matter what you put in for
*C n G
n, as the
printer ignores it.
Ifyouwant a 1-scaledotted pattern,fern you enter herea percentagenumber from 1to 100indicatingthedensity with which youwant the boxfilled,from light to solid. Your n percentage will correspond to one of the eight gray­scale densities in the chart below.
1- 2%0
3-10 Yo
89
11 -20 0/0
m
36-55 0/0
56-80 ~0
81 -99 0/0
1fyou want a linear pattern, for Hyou enter here a pattern number between
I and 6 inclusive. identifying one of the linear patterns below.
#3
#5
#4
#6
%0
90
You always send the following Print Pattern command after a Specify Pattern command. This Print Pattern command identifies whether the area youhavedefinedistobe filledwith arule, dottedgray-scale pattern,or linear pattern:
<ESC>
*C n P
For n enter a value from the following table. (If you select a linear pattern here, but a dotted pattern in the previous Specify Pattern command, the printer will ignore this Print Pattern command.)
n Value Pattern O(zero) solidblack
1 solid (opaque) white
‘2
shaded fill (as selected with <ESC> *c n G)
3 cross-hatched fill (as selected with<ESC> *c n G)
5 currentpatternfill(as selected with<ESC> *v n T)
If n = 5 has been selected, you will need the following command.
<ESC>
* n T
Thiscommand selectsthecurrent pattern typeto beapplied to sourceimages (not rectangular areas) before printing.
17Value Pattern O(zero)
Solid black
1 Solid white
2
Currently defined shading pattern
4 Currently defined cross-hatched pattern
Fern = 2or 3,thepattern defined bythe mostrecent <ESC> *cn Gcommand is used. To change the pattern, a new <ESC> *c n G and a new <ESC> *V
n T command are needed.
91
I
The following two commands control “transparency”, whether or not white sections of an image block out black pixels that are already in place.
<ESC>
n N
Thisselectsthesourcetransparency mode. whether white areasof thesource image should be treated as transparent (and do not “white-out” black pixels they cover) or opaque (in which case they white-out black pixels). Set n to Ofor the transparent mode and to 1 for the opaque mode.
<ESC>
* ? O
Thisselectsthepattern transparency mode,similarly to theabove command, whether the current pattern should be treated as transparent or opaque.
Set n to Ofor the transparent mode and to 1 for the opaque mode.
4 E P g
To specify a block five incheswide you could usea horizontal dimension of
1500dots (5 inches times 300 dots). That command would look like this:
<ESC>
To print that area with a 25 percent gray-scale pattern. the commands you
send would be:
“C 1500A
<ESC> *C25G
<ESC>
*C 2p
Butto print an area filled with the horizontal bar pattern, the commands you send would be:
<ESC>
<ESC>
*C 1G *C 3P
(You could combine these commands as <ESC> *c lg 3P.)
92
Loading...