Star Micronics 8 Series Applications Manual page 94

Star micronics laser printer applications manual
Table of Contents

Advertisement

I
1) Assigning a font ID to your font
To assignanIDto yourfont,yousendthiscommand(describedaboveunder
"Assigningfont ID numbem")with an ID number for n between O and
32767:
<ESC>
*C n
D
Before sending that command though, check whether the ID number is
alreadyallocatedto anotherfont. If it is, that existingfont will be deleted
with the next command.
2)
Downloading a header for
your
font
Even if the printerdoesn'thaveenoughmemoryto createyour font,it will
deleteany existingfont with the same ID numberwhen you downloadthe
headerfor your font.
A font'sheaderis the list of its attributes,whichyourprinteruscs to select
that font.Each fontheader,26 byteslong,is sto~d at the frontof the font.
You send-afontheadercommandto yourprinterjust beforeyoudownload
the font'scharacters.
The headercommandlookslike this:
<ESC>
)S n
W
and must be followed immediately by the data describing the font's
attributes.The n value is the actualnumber of bytes of descriptiondata,
almostalways26.Note:unlikeotherLaserJetII commands,youmustenter
the ASCII symbols2 and 6 here, not the number26.
Here's atypical font headercommand:
<ESC>
)S
26WO<SUB>OIOOO<RS>O<
RS>O2OO1
<FF>OdOWOOOOdWX>
Asidefrom the actualcommandat the front,the rest lookslike gobbledy-
gook?But there's 26 bytes there, each one an ASCIIcharacter,each one
specifyinga particularfontattribute.(Theencloseditemswithbracketsare
singleASCIIcharactersthat happento be controlcodes.)
Each byte in the headeris a number,which you send as whateversymbol
happensto be stored at that numericpositionin the ASCII table. Coding
someof thesenumbersis tricky,however,andwe recommendyouask your
StarMicronicsdealerto helpyoubuildyourfontheader.To get youstarted,
the tablebelowshowswhateach of thosebytesmeans:
86

Advertisement

Table of Contents
loading

This manual is also suitable for:

Laserprinter 8 series

Table of Contents