EasyManua.ls Logo

Star Micronics 8 Series - Page 91

Star Micronics 8 Series
230 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Here’showto assignIDnumbersto aninternalorcartridgefont.Youfirst
selectthefont,thensendtheFontIDcommandto giveit anIDnumber,and
finallycopythefontintomemorywithFontControlfunction6.Ifyouwant
that copy to stay in RAM when you reset the printer, you concludeby
sendingFontControlfunction5.
Example: Controlling fonts
Let’ssee howthoselastfewcommandswork,translatedintoBASIC.
Pretendyouwanttomakeashorttestwithyourcurnmtfont(itdoesn’tmatter
whatit is): youwantto printwhat’sin ASCIItablepositions128through
130.There’snothingtherein yournormalRoman-8symbolset,but some
othersetskeepcontrolcodesor internationalcharactersthere.
AssumingyoulikewhatyouseeprintedfromthoseASCIIpositions,you
then wantto makethatcurrentfontpermanent.Finally,you also wantto
dumpallthetemporaryfontsfromprintermemorytomakeroomforsome
graphicsyou’llbeprinting.
Let’sstartwitha resetandan underlinedheadingfor yourtestprint:
100 LPRINTCHR$(27) ; “E”;
110 LPRINTCHR$(27) ;“&dOD”;
120 LPRINT“Underlined heading for test print
of ASCII 128 - 130”;
130 LPRINTCHR$(27) ; “&d@”
140 LPRINTCHR$(27) ;“&p3X”;
150 LPRINTCHR$(128) ;CHR$(129) ;CHR$(130) ;
160 LPRINTCHR$( 12) ;
170 LPRINTCHR$(27) ; “*c5f IF” ;
Line100isjustthe<ESC>Eresetcommand.Lines110and130turnonand
off theunderlinefeature.
Line 140 turns on transparentprinting, which forces printing even for
normallyunprintablecontrolcodes.Thethreebytesyouwanttoprintarein
line 150.To seewhat’sthere,yousenda formfeedcommandin line 160.
Andfinally,line170usesthefontcontrolcommandtomakethecurrentfont
permanentandthendeletealltemporaryfonts.
83

Related product manuals