Star Micronics 8 Series Applications Manual page 91

Star micronics laser printer applications manual
Table of Contents

Advertisement

Here'show to assignID numbersto an internalor cartridgefont. You first
selectthe font,thensendtheFontIDcommandto giveit an IDnumber,and
finallycopythefontintomemorywithFontControlfunction6. If you want
that copy to stay in RAM when you reset the printer, you concludeby
sendingFont Controlfunction5.
Example: Controlling fonts
Let'ssee how thoselast few commandswork, translatedinto BASIC.
Pretendyouwanttomakeashorttestwithyourcurnmtfont(itdoesn'tmatter
what it is): you wantto print what'sin ASCIItable positions128through
130.There'snothingthere in yournormalRoman-8symbolset, but some
other sets keep controlcodesor internationalcharactersthere.
Assumingyou like what you see printedfrom those ASCIIpositions,you
then want to make that currentfont permanent.Finally,you also want to
dump all the temporaryfontsfromprintermemoryto make roomfor some
graphicsyou'llbe printing.
Let's start with a reset and an underlinedheadingfor yourtest print:
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$( 1 29) ; CHR$( 1 30) ;
160 LPRINTCHR$ ( 12) ;
170 LPRINT CHR$ ( 27) ; "*c5f IF" ;
Line 100isjust the<ESC>E resetcommand.Lines 110and 130turnon and
off the underlinefeature.
Line 140 turns on transparentprinting, which forces printing even for
normallyunprintablecontrolcodes.Thethreebytesyouwantto printarein
line 150.To see what'sthere, you send a form feed commandin line 160.
Andfinally,line 170usesthefontcontrolcommandto makethecurrentfont
permanentand then deleteall temporaryfonts.
83

Advertisement

Table of Contents
loading

This manual is also suitable for:

Laserprinter 8 series

Table of Contents