5.2.8. Selecting the height; 5.2.9. Scaling the scalable fonts vertically or horizontally; 5.2.10. Selecting the style- Page 78

Brother HL-2240 Command Reference Guide for Software Developers

Table of Contents

Technical Reference Guide
GLOSSARY
background image

 

CHAPTER 2 PCL - 58 

 

The selection will apply to whichever font you are currently specifying (primary or secondary). 

 

If the printer doesn't have the specified size font,  the next largest size font is used.  If the printer doesn't 
have a larger sized font,  the next smallest one is used. 

 

This value is ignored by the printer when a proportional spaced font is selected. 

 

10 REM ****** CHARACTER PITCH SELECTION ******  
20 ESC$=CHR$(27)  
30 WIDTH "LPT1:",255  
40 REM --- SELECT A 10 CPI PITCH FONT ----  
50 LPRINT ESC$+"(s10H";  
60 FOR I=33 TO 127  
70 LPRINT CHR$(I);  
80 NEXT  
90 LPRINT  
100 REM --- SELECT A 12 CPI PITCH FONT ---  
110 LPRINT ESC$+"(s12H";  
120 FOR I=33 TO 127  
130 LPRINT CHR$(I);  
140 NEXT  
150 LPRINT  
160 REM --- PAPER EJECT ---  
170 LPRINT CHR$(12);  
180 END 

 

5.2.8.

 

Selecting the height 

Esc(s#V (27)(40)(115)#(86) <1Bh><28h><73h>#<56h> 

This command designates the height of the primary font. 

 

Esc)s#V (27)(41)(115)#(86) <1Bh><29h><73h>#<56h> 

 

This command designates the height of the secondary font. 

 

# is the size in points (1/72") from 0.25 to 999.75 in 0.25 increments. 

 

This value is ignored by the printer when a fixed-spaced scalable font is selected. 

 

5.2.9.

 

Scaling the scalable fonts vertically or horizontally 

EscCR!#H (27)(13)(33)#(72) <1Bh><0Dh><21h>#<48h> 

This command designates the height of the scalable fonts. 

 

EscCR!#V (27)(13)(33)#(86) <1Bh><0Dh><21h>#<56h> 

This command designates the width of the scalable fonts. 

 

# can be from 0.25 ~ 3.00 in 0.01 increments. 

 

# value is set to 0.25 when  # is specified less than 0.25, and # value is set to 3.00 when # is specified bigger 
than 3.00. 

 

The value set by this command is initialized when the emulation is changed, a printer Reset, Test Print or 
Macro overlay is executed.  

 

5.2.10.

 

Selecting the style 

Esc(s#S (27)(40)(115)#(83) <1Bh><28h><73h>#<53h> 

 

This command designates the style of the primary font. 

 

Esc)s#S (27)(41)(115)#(83) <1Bh><29h><73h>#<53h> 

 

This command designates the style of the secondary font. 

 

If you select a particular style (for example upright condensed outline) the command will only take effect if 
the font is available in one of the three font locations. 

Detailed Information for Brother HL-2240 Command Reference Guide for Software Developers

Lists of information found in Brother HL-2240 Command Reference Guide for Software Developers - Page 78

  • 5.2.
  • 8. Selecting the height Esc(s#V (27)(40)(115)#(86) &lt;1Bh&gt;&lt;28h&gt;&lt;73h&gt;#&lt;56h&gt; This command designates the height of the primary font.
  • 99.75 in 0.
  • 5.2.
  • 9. Scaling the scalable fonts vertically or horizontally EscCR!#H (27)(13)(33)#(72) &lt;1Bh&gt;&lt;0Dh&gt;&lt;21h&gt;#&lt;48h&gt; This command designates the height of the scalable fonts.
  • 3.00 in 0.
  • 3.00 when # is specified bigger than 3.
  • 5.2.

Related Documents for Brother HL-2240 Command Reference Guide for Software Developers