cancel
Showing results for 
Search instead for 
Did you mean: 

X11 font problem

Livia
Advisor

X11 font problem

When I start a program, the error message below appears.

(I tried to set LANG=C.iso88591 and bypass this problem. But the error message is still there.)

Any suggestions?

---------------------------------------
Warning: Cannot convert string "-dt-interface user-medium-r-normal-m*-*-*-*-*-*-*-*-*" to type FontStruct
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-dt-interface system-medium-r-normal-m*-*-*-*-*-*-*-*-*" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset
Warning:
Name: FONTLIST_DEFAULT_TAG_STRING
Class: XmRendition
Conversion failed. Cannot load font.

Warning: Cannot convert string "-dt-interface system-medium-r-normal-m*-*-*-*-*-*-*-*-*" to type FontList
Warning: Cannot convert string "-dt-interface system-medium-r-normal-m*-*-*-*-*-*-*-*-*:" to type FontList
Warning:
Name: FONTLIST_DEFAULT_TAG_STRING
Class: XmRendition
Conversion failed. Cannot load font.

Warning: Cannot convert string "-dt-interface system-medium-r-normal-m*-*-*-*-*-*-*-*-*" to type FontList
Warning: Cannot convert string "-dt-interface system-medium-r-normal-m*-*-*-*-*-*-*-*-*:" to type FontList
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-dt-interface user-medium-r-normal-m*-*-*-*-*-*-*-*-*" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset
Warning:
Name: FONTLIST_DEFAULT_TAG_STRING
Class: XmRendition
Conversion failed. Cannot load font.

Warning: Cannot convert string "-dt-interface user-medium-r-normal-m*-*-*-*-*-*-*-*-*" to type FontList
Warning: Cannot convert string "-dt-interface user-medium-r-normal-m*-*-*-*-*-*-*-*-*:" to type FontList
nwrecover:
The font set specified for the browser windows is unavailable.
Please correct the 'BrowserFontList:' resource in X resources.
Font sets have the format ; : .
More information is available in the X11 documentation.
3 REPLIES
Alex Glennie
Honored Contributor

Re: X11 font problem

dt-interface are the default CDE fonts, suggest to me you are displaying the application remotely via a PC / Xsession :

in which case .....

Set-up a Font Server

1. To determine whether or not a font server is already running on the HP-UX system, execute the following command:

$ ps -ef | grep xfs
2. If a font server is running, the following process would appear in the process list:

/usr/bin/X11/xfs -config /etc/X11/fs/config -port 7000 -daem

If the font server is not running then:
1. Set the RUN_X_FONT_SERVER environment variable to 1 in the "/etc/rc.config.d/xfs" file:

RUN_X_FONT_SERVER=1
2. Start the font server:

$ /sbin/init.d/xfs start
3. Verify that the font server has been started:

$ ps -ef | grep xfs

RESOLVING "XFontserver error: Cannot open configuration file." ERRORS
4. If the error, "XFontserver error: Cannot open configuration file." results when trying to start the font server, perform one of the following steps to resolve the problem:
* Install the latest font server patch.
* Add the following line to the end of the /etc/rc.config.d/xfs file:

CONFIG_FILE_NAME=/etc/X11/fs/config
* restart the font server

ADDING THE FONT SERVER TO THE FONT PATH FOR CDE

If the full CDE environment will be displayed with Reflection X, perform the following steps (on the HP-UX system) to automatically add the font server to the Reflection X Xserver's font path:

1. Copy the Xsetup file from the /usr/dt/config directory to the /etc/dt/config directory:

cp /usr/dt/config/Xsetup Xsetup
NOTE: If this file already exists in the "/etc/dt/config directory", these modifications can be made to the existing file.
2. Add the following lines to the end of this /etc/dt/config/Xsetup file:


MYHOST_IP=$(getip $(hostname))
$XDIR/xset fp+ tcp/${MYHOST_IP}:7000 1 >/dev/null

3. Change the permissions on the /etc/dt/config/Xsetup file:

chmod 544 /etc/dt/config/Xsetup

Set-up Reflection X

If ReflectionX is being used to invoke clients and not CDE via XDMCP then the font server will not be automatically added via the "/etc/dt/config/Xsetup" from above. In this case the font server can either be added through the Font pull-down menu or via a command line execution.

NB if your not using reflectionX you will still need to add the fontserver address to the Xsession s/w consult the documentation or perhaps run xset +fp etc from the command line prior to starting the application.
Livia
Advisor

Re: X11 font problem

Thank you.

A font server can indeed solve this problem.
But I think the problem can be solved without font server.

I've tried doing the same thing on other servers (with the same OS, using the same cygwin client). It works normally. No error message appears.
There must be something wrong, but I cannot find any differences between the normal server and the trouble server.

Alex Glennie
Honored Contributor

Re: X11 font problem

might be worth checking xset -q and xrdb -q along with the contents of the xfs catalog file on a problematic vs a working server ?