From Electron Cloud
(One intermediate revision by one other user not shown) | |
(No difference)
|
Latest revision as of 00:05, 30 December 2006
- Download code128b.zip here
- (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
- Add the font to Fontmap.GS (e.g. /usr/share/ghostscript/7.07/lib/Fontmap.GS):
/Code128B (code128b.pfb) ;
- 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).