Operating System - HP-UX
1833178 Members
3321 Online
110051 Solutions
New Discussion

xfs Problem: Error when running xset fp+

 
Markus Banfi_1
Advisor

xfs Problem: Error when running xset fp+

Hi!

Maybe someone here can give me a helpfull hint.
I'm trying to add a TrueType font to one of our servers (HP-UX 11i) following the Document KBAN00000341.

When I try to run
xset fp+ tcp/172.23.3.101:7000 or
xset fp+ /usr/local/lib/X11/fonts/ttf
I always get the following error message:

X Error of failed request: 86
Major opcode of failed request: 51 (X_SetFontPath)
Serial number of failed request: 9
Current serial number in output stream: 11


fslsfonts -server 172.23.3.101:7000
works fine.


Following is the output of "xset -q":

Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000000
auto repeating keys: 00ffffffdffffbbf
fa9fffffffdff5ff
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: 600
Colors:
default colormap: 0x20 BlackPixel: 0 WhitePixel: 16777215
DPMS has not been enabled for this X Server
Font Path:
/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/
Bug Mode: compatibility mode is disabled


I've already tried to restart xfs.


Thanks in advance for any help.

-Markus-
Analyse - Simplify - Automate
5 REPLIES 5
Steve Steel
Honored Contributor

Re: xfs Problem: Error when running xset fp+

Hi

try

Force CDE to add the font-server to the X-Server font-path
by editing the Xsetup file. (NOTE: This steps REQUIRES
the IP address of the CDE session server. You can get
this information by running: nslookup `hostname`.)

COPY: /usr/dt/config/Xsetup to /etc/dt/config/Xsetup
EDIT: /etc/dt/config/Xsetup

Add the following line to /etc/dt/config/Xsetup replacing
"IPADDRESS" with the IP address of the server as returned
from "nslookup `hostname`":

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


Get


PHSS_28470 s700_800 11.11 X Font Server Patch



Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Alex Glennie
Honored Contributor

Re: xfs Problem: Error when running xset fp+

The above error "normally" suggests either permission problems re the new font directory or on the fonts.dir file contained within it ie /usr/local/lib/X11/fonts/ttf/fonts.dir.

it doesn't explain why the xset fp+ on the fontserver failed.

Qu's : check the info above, comment on what Xserver you are running the xset command on ie HPUX, xterminal or pc .... a copy of the xfs config file would also help .... as your xset -q output re font path looks a little unusual and short for a default hpux system .....


Rick Beldin
HPE Pro

Re: xfs Problem: Error when running xset fp+

All the error message indicates is that 'something' is wrong with the fonts in the font path.
Since fonts can be distributed in a variety of formats from a variety of OS's, the problem can be os-specific or something generic.

In the case of TTF fonts, you need to use a slightly different set of utilities when adding fonts. mkfontdir won't be the tool of choice, you'll need to use stmkdirs command to create the supporting files.

Necessary questions: Why? What? How? When?
Bill McNAMARA_1
Honored Contributor

Re: xfs Problem: Error when running xset fp+

do the existing font paths exist.? Doesn't CDE need more in the minimum font path to work?!?

what does xlsfonts -l show.

Later,
Bill
It works for me (tm)
Markus Banfi_1
Advisor

Re: xfs Problem: Error when running xset fp+

Thanks to everyone for your replies and tips.

I tried the command to add the font path using a CDE-Session connected with the Hummingbird Exceed product. And surprisingly it worked!
Normaly I use Cygwin. Whenever I tried it with Cygwin (SSH X11 tunnel, or XDMCP query for a complete CDE) it didn't work. Must be a problem with my Cygwin.
I'll start using Exceed to avoid such problems in the future.

-Markus-
Analyse - Simplify - Automate