Operating System - HP-UX
1833920 Members
6769 Online
110063 Solutions
New Discussion

Re: adding fonts to a font server

 
Theresa Patrie
Regular Advisor

adding fonts to a font server

Hi,
I am trying to add some application fonts to my workstation so that the X application will have the correct fonts to run the app remotely. The workstation is already running a font server as specified by the last line in Xsetup:

$XDIR/xset fp+ tcp/138.127.172.39:7000 1>/dev/null

edlhp120-root $ ps -ef | grep xfs
root 34 0 0 Jul 5 ? 1:59 vxfsd
root 3467 3360 0 10:52:58 pts/11 0:00 grep xfs
root 3225 1 0 10:45:06 ? 0:00 /usr/bin/X11/xfs -config /etc/X11/fs/config -port 7000 -daemon

Before I add my new path to /etc/X11/fs/config, the xlsfonts command works fine and lists out all the default fonts. When I add the nfs path "/apps/en2002/registry/fonts" to the catalogue line in /etc/X11/fs/config and stop and restart xfs, my newly added fonts are not available and xlsfonts does not show any fonts:

edlhp120-root $ xlsfonts
xlsfonts: pattern "*" unmatched
edlhp120-root $ xset -q
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000000
auto repeating keys: 00ffffffdffffbbf
fadfffffffdffdff
ffffffffffffffff
ffffffffffffffff
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 2/1 threshold: 4
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 600 cycle: 180
Colors:
default colormap: 0x20 BlackPixel: 0 WhitePixel: 65535
DPMS has not been enabled for this X Server
Font Path:
tcp/edlhp120:7000,tcp/138.127.172.39:7000
Bug Mode: compatibility mode is disabled

Anybody know what is going on?? My first thought is that I cannot use an NFS path for a font path...is that true? If I copy the fonts locally, would it work?? Beyond that, I am not sure what the problem could be. Any help would be appreciated.
Thanks,
Theresa
This is my easy job!
5 REPLIES 5
Theresa Patrie
Regular Advisor

Re: adding fonts to a font server

I just copied the font directory local and still have the same problem. I ran fslsfonts and the desired fonts do show up there, but they are still not available for my application.
This is my easy job!
Alex Glennie
Honored Contributor

Re: adding fonts to a font server

I'd say the Xserver is not recognising the fonts .... I suspect the reason is the nfs mount, I've never tried it with NFS or know of anyone who has.

Advise : cp the fonts locally, AND depending on their type run mkfontdir or stmkdir (tt-fonts) to create the fonts.dir and/or fonts.alias, add the font path to the config file and restart xfs .... still a problem ?
Alex Glennie
Honored Contributor

Re: adding fonts to a font server

some detail about the font type and the content of the /etc/X11/fs/config would be handy ....
Theresa Patrie
Regular Advisor

Re: adding fonts to a font server

Hi Alex,
The fonts are Mentor Graphics icons (pcf format). Originally I just copied the entire fonts directory over and left the fonts.dir file intact. This time I copied over the fonts to the local machine and ran mkfont dir to recreate the fonts.dir file. Now both fslsfonts and xlsfonts are listing all the desired fonts and the application works great. Looks like the issue was having a NFS mounted font path.
Thanks for your help!
Theresa
This is my easy job!
Theresa Patrie
Regular Advisor

Re: adding fonts to a font server

Hi Alex,
I switched it back to point to the NFS font directory just to prove it out, and it worked. Now I have all my machines' font servers pointing to the same NFS mounted fonts directory and they are all working fine. My problem was that I was doing my configuration work remotely from within the X application that I was trying to configure. When I went to the console to do the work, things went a lot smoother.
Thanks!
Theresa
This is my easy job!