CHAPTER 4 HP-GL/2 - 41
attribute = 2 : Spacing
Value Meaning
0 Monospacing
1 Proportional
spacing
attribute = 3 : Pitch
Specify pitch in characters per inch (cpi). The pitch value you specify can be in the range 0 to 32767.9999.
Pitch only applies to monospaced fonts.
attribute = 4 : Height
Specify height in points. One point is 1/72". The height value you specify can be in the range 0 to
32767.9999. Proportionally spaced fonts are scaled according to the height you select. Monospaced fonts
ignore this setting value.
attribute = 5 : Posture
value Meaning
0 Upright
1 Italic
2 Alternate
italic
attribute = 6 : Stroke weight
Attribute Meaning
-7 Ultra
Thin
-6 Extra
thin
-5 thin
-4 Extra
light
-3 Light
-2 Demi
light
-1 Semi
light
0
Medium, Book or Text
1 Semi
bold
2 Demi
bold
3 Bold
4 Extra
bold
5 Black
6 Extra
black
7 Ultra
black
9999
Stick font at current pen width*
* This attribute value is only effective if the stick font is the current font.
attribute = 7 : Typeface
You can select any typefaces available in LaserJet mode, from the internal fonts, card/cartridge fonts or
download fonts.
10 '-Standard Font Definition-
20 WIDTH "LPT1:", 255
30 LPRINT CHR$(27); "E";
40 LPRINT CHR$(27); "%0B";
50 LPRINT "IN;SP1;";
60 LPRINT "PA2200,7000;SD2,0,4,11.5,5,0;"
70 LPRINT "DT#;LBLaser printer#"
80 LPRINT "PA2000,5000;SD2,1,4,20,5,1;"
90 LPRINT "LBLaser printer#"
100 LPRINT "PA1000,3000;SD2,1,4,50,5,1;"
110 LPRINT "LBLASER PRINTER#"
120 LPRINT CHR$(27); "E";
130 LPRINT CHR$927); "%0A";
140 END
<Sample 48>
Summary of Contents for HL-4140CN
Page 4: ......
Page 15: ...CHAPTER 1 INTRODUCTION 1 CHAPTER 1 INTRODUCTION ...
Page 20: ...CHAPTER 2 PCL 1 CHAPTER 2 PCL PRINTER CONTROL LANGUAGE ...
Page 137: ...CHAPTER 3 PCL5C 1 CHAPTER 3 PCL5C ...
Page 155: ...CHAPTER 4 HP GL 2 1 CHAPTER 4 HP GL 2 GRAPHICS LANGUAGE ...
Page 208: ...CHAPTER 5 PJL 1 CHAPTER 5 PJL PRINTER JOB LANGUAGE ...
Page 285: ...CHAPTER 6 EPSON 1 CHAPTER 6 EPSON FX 850 ...
Page 313: ...CHAPTER 7 IBM PROPRINTER 1 CHAPTER 7 IBM PROPRINTER XL ...
Page 334: ...CHAPTER 8 BAR CODE CONTROL 1 CHAPTER 8 BAR CODE CONTROL ...
Page 346: ...CHAPTER 9 HP GL 1 CHAPTER 9 HP GL GRAPHICS LANGUAGE ...
Page 373: ...CHAPTER 10 CARBON COPY FUNCTION 1 CHAPTER 10 CARBON COPY FUNCTION ...
Page 383: ...APPENDIX A COMPARISON LIST 1 APPENDIX A COMPARISON LIST ...
Page 490: ...APPENDIX C HBP MODE COMMANDS 1 APPENDIX C HBP MODE COMMANDS For HL 820 1020 1040 Only ...