Operating System - HP-UX
1836582 Members
1628 Online
110102 Solutions
New Discussion

Install Barcode fonts on HPUX 11.x

 
Wayne Schmidt_1
New Member

Install Barcode fonts on HPUX 11.x

I need to install Bizfonts Barcode fonts (code 39) on an HPUX 11.x server. I receive the following error after an installation:

xset: bad font path element (#40), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax

Does anyone have instructions for installing 3rd party fonts on HPUX 11.x?

Thank you!
1 REPLY 1
Alex Glennie
Honored Contributor

Re: Install Barcode fonts on HPUX 11.x

Hopefully the following eg wrt imb fonts will help ? If not post the output from xset -q ...


How to use a different font with xsnap3270
-------------------------------------------------------------------------------

1. Create a directory on your machine to hold the IBM fonts. This
directory can reside anywhwere on your system, but for
example purposes, we will put it in /usr/lib/X11/fonts.

cd /usr/lib/X11/fonts
mkdir snafont

2. Copy the IBM fonts from the system's "misc" font directory:

cp /usr/lib/X11/fonts/misc/12x28ibm.snf.Z /usr/lib/X11/fonts/snafont
cp /usr/lib/X11/fonts/misc/6x13ibm.snf /usr/lib/X11/fonts/snafont
cp /usr/lib/X11/fonts/misc/9x21ibm.snf.Z /usr/lib/X11/fonts/snafont

3. Uncompress the compressed fonts:

cd /usr/lib/X11/fonts/snafont
uncompress 12x28ibm.snf.Z
uncompress 9x21ibm.snf.Z

4. Create the fonts.dir file for the new font directory cd into the
new font directory. This will create fonts.alias and fonts.dir:

# cd /usr/lib/X11/fonts/snafont

# mkfontdir

5. Make sure that fonts.alises has at least one entry.

6. Add the current font directory in the font path:

# xset fp+ 'pwd' or /usr/lib/X11/fonts/snafont


7. Issue the following command to verify the addition to the font path:

/usr/bin/X11/xset -q

8. Type the following command to see a listing of the IBM fonts:

/usr/bin/X11/xlsfonts | grep -i ibm

9. Type the following command to see the size of the IBM font:

/usr/contrib/bin/X11/xfd -fn