1840307 Members
2948 Online
110162 Solutions
New Discussion

Re: Font problem

 
David Tang_1
Advisor

Font problem

Hi all,
I have a problem involving font issues. I have an application that is written for HP-UX, when I try and access the application via a SUN workstation I have the following error:-
Warning: Cannot convert string"hp8.8x16b" to type FontStruct
Warning: Missing charsets in Sring to FontSet conversion
Warning: Missing charsets in Sring to FontSet conversion
*** Cannot load font 'hp8.8x16b'

anybody got any idea to overcome this issue?
3 REPLIES 3
Andy Monks
Honored Contributor

Re: Font problem

David,

The sun probably doesn't have the hp fonts. A solution would be to setup the HP machine as a font server and then on the sun box tell it, it can use he hp font server.

You should be able to setup the font server with sam, and then on the sum box you would have to the the equivilent of :-

xset +fp hostname:portnumber (where hostname is the hp machine and portnumber is the port the fontserver is running on
Stefan Farrelly
Honored Contributor

Re: Font problem


You need to copy this hp font file over to your Sun box, then it should work fine.

On your HP its in; /usr/lib/X11/fonts/misc/hp8.8x16b.pcf

Copy this to you Sun box to the directory where it keeps all its fonts. I dont know where exactly, directory name should be something similar. Then restart your font server (if Sun has one!).
Im from Palmerston North, New Zealand, but somehow ended up in London...
Alex Glennie
Honored Contributor

Re: Font problem

Both the above should work, but if you copy additional fonts over from the HP to the Sun you'll probably need to run mkfontdir in the font directory to update the fonts.alias and font.dir files.

check the font has been recognised by using xlsfont grep
check font server setup using xset -q : you should see tcp/:7000

Plenty of info on this forum wrt how to setup xfs, try the search engine ?