
Revision C 16/01/96
Chapter 8 "HP-GL2" 59
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
<Sample 58>
Содержание HL- SERIES
Страница 13: ...Revision A 16 01 96 Chapter 1 Introduction ...
Страница 16: ...Revision C 16 01 96 Chapter 2 PCL 1 Chapter 2 PCL ...
Страница 123: ...Revision C 16 01 96 Chapter 2 PCL 3 W width raster area 78 Y y offset raster 79 ...
Страница 124: ...Revision C 16 01 96 Chapter 3 PJL 1 Chapter 3 PJL Printer Job Language ...
Страница 180: ...Revision C 16 01 96 Chapter 4 Diablo 630 1 Chapter 4 Diablo 630 ...
Страница 200: ...Revision C 16 01 96 Chapter 5 EPSON FX 850 1 Chapter 5 EPSON FX 850 ...
Страница 237: ...Revision C 16 01 96 Chapter 6 IBM Proprinter XL 1 Chapter 6 IBM Proprinter XL ...
Страница 259: ...Revision C 16 01 96 Chapter 7 Bar Codes Control 1 Chapter 7 Bar Code Control ...
Страница 267: ...Revision C 16 01 96 Chapter 8 HP GL2 1 CHAPTER 8 HP GL 2 Graphics Language ...
Страница 280: ...Revision C 16 01 96 Chapter 8 HP GL2 14 220 END Sample 21 ...
Страница 328: ...Revision C 16 01 96 Chapter 9 HP GL 1 CHAPTER 9 HP GL Graphics Language ...
Страница 332: ...Revision C 16 01 96 Chapter 9 HP GL 5 1 3 2 Printing Area a b d c a b c d mm A4 4 5 5 5 Letter 6 5 5 5 Legal 6 5 5 5 ...
Страница 342: ...Revision C 16 01 96 Chapter 9 HP GL 15 Sample 68 ...
Страница 387: ...Revision C 16 01 96 APPENDIX A COMPALISON LIST 24 RESOLUTION 300 600 300 600 300 600 ...