From Electron Cloud
Line 1: | Line 1: | ||
# Download [http://www.barcode-1.net/pub/russadam/fonts.html code128b.zip here] | # Download [http://www.barcode-1.net/pub/russadam/fonts.html code128b.zip here] | ||
# (on gentoo, at least) copy the following files into <tt>/usr/share/fonts/default/ghostscript</tt> (using lowercase filenames): | # (on gentoo, at least) copy the following files into <tt>/usr/share/fonts/default/ghostscript</tt> (using lowercase filenames): | ||
− | * code128b.afm | + | * code128b.afm |
− | * code128b.pfb (copy from CODE128B.PS) | + | * code128b.pfb (copy from CODE128B.PS) |
− | * code128b.pfm | + | * code128b.pfm |
# Add the font to Fontmap.GS (e.g. /usr/share/ghostscript/7.07/lib/Fontmap.GS): | # Add the font to Fontmap.GS (e.g. /usr/share/ghostscript/7.07/lib/Fontmap.GS): | ||
<pre> | <pre> |
Revision as of 17:29, 11 September 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).