IDAutomation.com, Inc.

Your Source for Quality Symbology

[IDAutomation.com Home]

NOTE: In the Demo version of these Code 128 fonts, an intermittent "DEMO" watermark will appear at the top of the barcode, which may sometimes cause scanner read errors. A successful scan can be obtained for testing purposes by scanning the lower portion of the barcode that does not contain the watermark.
In addition, not all PCL fonts are included in the Demo version.
To order the complete Code 128 Font Package: www.idautomation.com/barcode-fonts/code-128/

PCL Font Support Document

This document describes how to print PCL (HP's Printer Command Language) fonts to a PCL compatible printer. PCL fonts can be used on any operating system that can send files to a PCL compatible printer in binary mode. From the Windows command prompt, this is performed by using the COPY command with the /B switch.

FONT NAMING

The syntax for naming the PCL fonts is as follows: Font Type (C128) + height (see chart below) + point size (8, 12, 16, 20 or 24)  + .SFP". All C128 PCL fonts are 300 DPI.

Font height Font height @12 points
 XXS  .10" or .254 CM
 XS  .20" or .508 CM
 S  .35" or .889 CM
 M  .50" or 1.27 CM
 L  .60" or 1.46 CM
 XL  .75" or 1.90 CM
 XXL   1"   or 2.54 CM

PCL FONT PRINTING EXAMPLE

The example provided below is only one method of printing with PCL fonts. We provide this example for you to test the PCL fonts and ensure they are compatible with your printer. Your application will need to perform similar commands to copy the escape sequences and fonts to the printer as a single string of data. We cannot perform consulting services to help you with the implementation in your application because it is beyond the scope of our support policy.

In the example below, <Esc> represents the escape character. To create the <Esc> command in DOS Edit, hold down the CTRL key and press the letter "P", then release both keys and then press the ESC character. 

The following commands will download a font to the PCL printer and assign it an ID number of 70:

  1. <Esc>*c70D  tells the printer it will receive a soft font and to assign it an ID of 70 (provided in file c70D.txt)
  2. Copy the font file to the printer
  3. <Esc>*c5F   tells the printer to make this a permanent font (provided in file c5F.txt)
  4. <Esc>(70X  selects the font (provided in file data.txt)

To test these commands from a Windows command prompt, run the TEST.BAT file provided. The TEST.BAT file assumes you have a PCL printer attached to the LPT1 port. View the files c70D.txt, c5F.txt and data.txt with a standard text editor to view the commands in the files.

You may type the copy commands manually from the prompt, for example:

copy /B c70D.txt +C128S12.SFP +c5F.txt +data.txt LPT1

The files may also be copied to a printer on a network, for example:

copy /B c70D.txt +C128S12.SFP +c5F.txt +data.txt \\server1\printer1

More Information:

PCL defines a standard set of commands that enable programs to communicate with PCL or PCL compatible printers. If you need further information about PCL commands, you may want to obtain the Technical Reference Manual, part number 5021-0377. Order the manual set from HP's Support Materials Organization.

Copyright © 2014 IDAutomation.com, Inc. All rights reserved. Legal Notices.