5.4. Creating Downloadable Fonts; 5.4.1. Downloading; 5.4.2. Sending the font descriptor- Page 83

Brother HL-4040CDN Command Reference Guide for Software Developers

Table of Contents

Technical Reference Guide
GLOSSARY
background image

 

CHAPTER 2 PCL - 63 

5.4.

 

Creating Downloadable Fonts 

5.4.1.

 

Downloading  

You can download existing fonts (that is, ones that you have bought or ones that you have created previously) 
using either a font downloading application program or the DOS command  

COPY/b <filename> PRN 

In addition, some word-processing and DeskTop publishing programs will automatically download the fonts 
that have been used in a document when that document is printed. 

Alternatively, you can create a new downloadable font and download the necessary blocks of data that comprise 
the downloadable font using PCL commands.  

To send a font,  you must send 

 

* a font descriptor block followed by the character code 

 

* a character descriptor 

 

* data for each character 

The printer can download 3 types of fonts. 

Bitmap fonts, Bound Scalable fonts and Unbound Scalable fonts. 

 

5.4.2.

 

Sending the font descriptor 

Esc)s#W

 

(font descriptor data) (27)(40)(115)#(58)

 <1Bh><28h><73h>#<88h> 

ï‚Ÿ

 

This command sends the font descriptor to the printer.

 

ï‚Ÿ

 

# should be in the range 0 to 32767.

 

ï‚Ÿ

 

# is the number of bytes in the descriptor.

 

ï‚Ÿ

 

Characters are designed on a notional grid known as the character cell. The positioning and shape of each 
character on the grid defines its size, shape and alignment to the other characters in the font. 

 

Cell height

x-height

Baseline distance

Underline distance

Baseline

Underline thickness

Cell width

 

Detailed Information for Brother HL-4040CDN Command Reference Guide for Software Developers

Lists of information found in Brother HL-4040CDN Command Reference Guide for Software Developers - Page 83

  • 5.4.
  • 5.4.
  • 1. Downloading You can download existing fonts (that is, ones that you have bought or ones that you have created previously) using either a font downloading application program or the DOS command COPY/b &lt;filename&gt; PRN In addition, some word-processing and DeskTop publishing programs will automatically download the fonts that have been used in a document when that document is printed.
  • 5.4.
  • 2. Sending the font descriptor Esc)s#W (font descriptor data) (27)(40)(115)#(58) &lt;1Bh&gt;&lt;28h&gt;&lt;73h&gt;#&lt;88h&gt; ï‚Ÿ This command sends the font descriptor to the printer.
  • 67. ï‚Ÿ # is the number of bytes in the descriptor.

Related Documents for Brother HL-4040CDN Command Reference Guide for Software Developers