From Electron Cloud
Revision as of 17:29, 11 September 2006 by Ecloud (Talk | contribs)

Jump to: navigation, search
  1. Download code128b.zip here
  2. (on gentoo, at least) copy the following files into /usr/share/fonts/default/ghostscript (using lowercase filenames):
  * code128b.afm
  * code128b.pfb (copy from CODE128B.PS)
  * code128b.pfm
  1. Add the font to Fontmap.GS (e.g. /usr/share/ghostscript/7.07/lib/Fontmap.GS):
/Code128B       (code128b.pfb)  ;
  1. Try this test program:

/Code128B findfont 18 scalefont setfont 30 130 moveto (\210My Message Is This\212) show 30 100 moveto (\213\210Barcoding can be EASY!\212\213) show showpage

The 213, 210 is a "quiet zone" and start code; 212 213 is a stop code and another "quiet zone" (required for the barcode reader to have a boundary between the barcode and any other text or markings).