Star Micronics 8 Series manual Assigning a font ID to your font

Models: 8 Series

1 230
Download 230 pages 57.57 Kb
Page 94
Image 94

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.

Afont’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 ASCII character,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

Page 94
Image 94
Star Micronics 8 Series manual Assigning a font ID to your font