Brother HL-2170W User Manual
Page 200
CHAPTER 4 HP-GL/2 - 49
10 ' -Absolute Character Size-
20 WIDTH "LPT1:", 255
30 LPRINT CHR$(27); "E";
40 LPRINT CHR$(27); "%0B";
50 LPRINT "IN;SP1;";
60 LPRINT "PA700,3000;DT#;LBPrinter#"
70 LPRINT "PA700,2000;SI0.75,1;LBPrinter#"
80 LPRINT "SI;SD1,21,2,1,3,12,5,0,6,0,7,52;SS;"
90 LPRINT "PA40003000;LBPrinter#"
100 LPRINT "PA4000,2000;SI1,1.5;LBPrinter#"
110 LPRINT CHR$(27); "%0A";
120 LPRINT CHR$(27); "E";
130 END
SR - Set relative character size
SR [ width, height ] [;]
width ; the width of printed characters expressed as a percentage of the x-component of the distance between
P1 and P2.
height ; the height of printed characters expressed as a percentage of the y-component of the distance
between P1 and P2.
This command allows you to specify the size of the character that you print with the LB instruction
relative to the scaling points P1 and P2.
width sets the character width to a percentage of |P2x-P1x| and is a clamped real number. Negative
values of width produce right-to-left mirror image characters
height sets the character height to a percentage of |P2y-P2y| and is a clamped real number. Negative
values of height produce upside-down mirror image character.
If you change the positions of P1 and P2, the character size will change unless the scaling points
remain in the same relative positions.
If you move P2 to the left of, or below P1, characters will appear in mirror image.
If you change the character size, the line width used to draw stick font characters may also change.
If you omit the parameters, the character size is as specified by the most recent SD or AD command.
10 '-Relative Character Size-
20 WIDTH "LPT1:", 255
30 LPRINT CHR$(27); "E";
40 LPRINT CHR$(27); "%0B";
50 LPRINT "IN;SP1;";
60 LPRINT "IP2000,2000,6500,6500;DT@;"
70 LPRINT "SR;PA0,2700;LBRELATIVE LABEL SIZE@"
80 LPRINT "IP0,0,5500,5500;PA0,2000;"
90 LPRINT "LBNEW P1 AND P2 CHANGE LABEL SIZE@"
100 LPRINT "PA0,1000;SR2.5;LBNEW SR INSTRUCTION`;CP;"
110 LPRINT CHR$(27); "%0A";
120 LPRINT CHR$(27); "E";
140 END
SL - Character slant
SL [ tan
] [;]
tan
- tangent of character slant angle ()
This command determines the slant of characters printed with subsequent LB commands.
is the angle between characters and the vertical. A positive value of ( and tan ) produces forward
sloping characters, while a negative value results in characters which slant backwards.
Values of tan
are clamped real numbers.
A value of 0 for tan
results in upright characters.
If you omit the parameter, tan
is take to be 0 and any characters printed will be upright.
- HL-1670N HL-6050D HL 5250DN HL-5070N HL-2460 HL-6050DN HL-2150N HL 2700CN HL-2130 HL-S7000DN HL-3040CN HL 1650 HL-6050 HL-5240 HL-5240L HL-1470N HL 3070CW HL 5170DN HL-3450CN HL-3140CW HL 5470DW HL-5140 HL-5440D HL-7050 HL-2240 HL-5040 HL-4070CDW HL-1870N HL-1110 HL-1850 HL 4150CDN HL-8050N HL 5450DN HL 5370DW HL-5050 HL-2140 HL 1270N HL-2600CN HL-6180DW HL-5350DN HL-4050CDN HL-2070N HL-3260N HL-5150D HL-5280DW HL-3170CDW HL-4570CDW HL-3150CDW HL 4040CN HL-4140CN HL 2240D HL 2270DW HL-1250 HL-7050N HL 5340D HL-2250DN HL-1450 HL-L9200CDWT HL-1112 HL-5270DN HL-5450DNT HL-L8250CDN HL 4570CDWT HL-5380DN HL-6180DWT HL-L8350CDW HL-4040CDN HL-L8350CDWT HL-2230 HL-5470DWT HL 2220 HL-1110E HL-1112E