I
1) Assigning a font ID to your font
ToassignanIDtoyourfont,yousendthiscommand(describedaboveunder
“Assigningfont ID numbem”)with an ID number for n betweenOand
32767:
<ESC>*C n D
Before sendingthat commandthough,check whetherthe ID numberis
alreadyallocatedto anotherfont.If it is, thatexistingfontwill be deleted
withthenextcommand.
2)
Downloading a header for your font
Evenif theprinterdoesn’thaveenoughmemoryto createyourfont,it will
deleteanyexistingfontwiththe sameID numberwhenyoudownloadthe
headerfor yourfont.
A font’sheaderis thelistof its attributes,whichyourprinteruscsto select
thatfont.Each fontheader,26 byteslong,is sto~d at the frontof the font.
Yousend-afontheadercommandto yourprinterjust beforeyoudownload
the font’scharacters.
Theheadercommandlookslikethis:
<ESC>
)S n W
and must be followed immediatelyby the data describing the font’s
attributes.The n value is the actualnumberof bytesof descriptiondata,
almostalways26.Note:unlikeotherLaserJetII commands,youmustenter
theASCIIsymbols2 and6 here,notthenumber26.
Here’satypical fontheadercommand:
<ESC>)S 26WO<SUB>OIOOO<RS>O<RS>O2OO1<FF>OdOWOOOOdWX>
Asidefrom the actualcommandat thefront,the restlookslike gobbledy-
gook?But there’s26 bytesthere,each one an ASCIIcharacter,each one
specifyingaparticularfontattribute.(Theencloseditemswithbracketsare
singleASCIIcharactersthathappento be controlcodes.)
Eachbytein the headeris a number,whichyousend as whateversymbol
happensto be storedat thatnumericpositionin the ASCII table.Coding
someofthesenumbersistricky,however,andwerecommendyouaskyour
StarMicronicsdealertohelpyoubuildyourfontheader.To getyoustarted,
thetablebelowshowswhateachof thosebytesmeans:
86