Operating System - HP-UX
1832235 Members
2861 Online
110041 Solutions
New Discussion

VNC server not recognising true type fonts

 
Phil Daws_4
Occasional Advisor

VNC server not recognising true type fonts

Hi,

i am trying to add in the MS fonts (/usr/lib/X11/fonts/ms.st) to X11 under HP-UX 11i so that VNC is able to use them.

I have configured the fonts directory which now looks like this :-
total 5072
-r--r--r-- 1 bin bin 5041 Nov 14 2000 README
-r--r--r-- 1 bin bin 143300 Nov 14 2000 arial.ttf
-r--r--r-- 1 bin bin 144404 Nov 14 2000 arialb.ttf
-r--r--r-- 1 bin bin 143976 Nov 14 2000 ariali.ttf
-r--r--r-- 1 bin bin 164396 Nov 14 2000 arialz.ttf
-r--r--r-- 1 bin bin 103992 Nov 14 2000 ariblk.ttf
-r--r--r-- 1 bin bin 63040 Nov 14 2000 comic.ttf
-r--r--r-- 1 bin bin 55892 Nov 14 2000 comicbd.ttf
-r--r--r-- 1 bin bin 173616 Nov 14 2000 cour.ttf
-r--r--r-- 1 bin bin 174596 Nov 14 2000 courb.ttf
-r--r--r-- 1 bin bin 188172 Nov 14 2000 couri.ttf
-r--r--r-- 1 bin bin 180160 Nov 14 2000 courz.ttf
-r--r--r-- 1 bin bin 3971 Nov 14 2000 fonts.alias
-rw-r--r-- 1 root sys 1701 Oct 4 12:57 fonts.dir
-r--r--r-- 1 bin bin 1321 Aug 27 2001 fonts.dir.jre
-rw-r--r-- 1 bin bin 1883 Oct 4 12:28 fonts.dir~
-r--r--r-- 1 bin bin 188996 Nov 14 2000 times.ttf
-r--r--r-- 1 bin bin 182604 Nov 14 2000 timesb.ttf
-r--r--r-- 1 bin bin 181308 Nov 14 2000 timesi.ttf
-r--r--r-- 1 bin bin 171284 Nov 14 2000 timesz.ttf
-r--r--r-- 1 bin bin 52720 Nov 14 2000 verdana.ttf
-r--r--r-- 1 bin bin 53816 Nov 14 2000 verdanab.ttf
-r--r--r-- 1 bin bin 57012 Nov 14 2000 verdanai.ttf
-r--r--r-- 1 bin bin 59636 Nov 14 2000 verdanaz.ttf

and in the fonts.dir :-

19
comic.ttf -microsoft-comic sans ms-medium-r-normal--0-0-0-0-p-0-hp-tdffffffff37ffffff;1,0;3,1
verdanaz.ttf -microsoft-verdana-bold-i-normal--0-0-0-0-p-0-hp-tdffffffff37ffffff;1,0;3,1
verdanab.ttf -microsoft-verdana-bold-r-normal--0-0-0-0-p-0-hp-tdffffffff37ffffff;1,0;3,1
verdanai.ttf -microsoft-verdana-medium-i-normal--0-0-0-0-p-0-hp-tdffffffff37ffffff;1,0;3,1
verdana.ttf -microsoft-verdana-medium-r-normal--0-0-0-0-p-0-hp-tdffffffff37ffffff;1,0;3,1
ariblk.ttf -mono-arial-black-r-normal--0-0-0-0-p-0-hp-tdffffffff37ffffff;1,0;3,1
arialz.ttf -monotype-arial-bold-i-normal--0-0-0-0-p-0-hp-tdffffffff003ffffe;1,0;3,1
arialb.ttf -monotype-arial-bold-r-normal--0-0-0-0-p-0-hp-tdffffffff003ffffe;1,0;3,1
ariali.ttf -monotype-arial-medium-i-normal--0-0-0-0-p-0-hp-tdffffffff003ffffe;1,0;3,1
arial.ttf -monotype-arial-medium-r-normal--0-0-0-0-p-0-hp-tdffffffff003ffffe;1,0;3,1
courz.ttf -monotype-courier new-bold-i-normal--0-0-0-0-m-0-hp-tdffffffff37ffffff;1,0;3,1
courb.ttf -monotype-courier new-bold-r-normal--0-0-0-0-m-0-hp-tdffffffff37ffffff;1,0;3,1
couri.ttf -monotype-courier new-medium-i-normal--0-0-0-0-m-0-hp-tdffffffff37ffffff;1,0;3,1
cour.ttf -monotype-courier new-medium-r-normal--0-0-0-0-m-0-hp-tdffffffff37ffffff;1,0;3,1
timesz.ttf -monotype-times new roman-bold-i-normal--0-0-0-0-p-0-hp-tdffffffff003ffffe;1,0;3,1
timesb.ttf -monotype-times new roman-bold-r-normal--0-0-0-0-p-0-hp-tdffffffff003ffffe;1,0;3,1
timesi.ttf -monotype-times new roman-medium-i-normal--0-0-0-0-p-0-hp-tdffffffff003ffffe;1,0;3,1
times.ttf -monotype-times new roman-medium-r-normal--0-0-0-0-p-0-hp-tdffffffff003ffffe;1,0;3,1
comicbd.ttf -ms-comic sans ms-bold-r-normal--0-0-0-0-p-0-hp-tdffffffff37ffffff;1,0;3,1

But when I add the path to 'vncserver' :-

# Add font path and color database stuff here, e.g.:
# The "hp_roman8/" is suitable for HP/UX 10.20.
$cmd .= " -fp usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/hp_roman8/75dpi/,/usr/lib/X11/fonts/ms.st/";

I get the error message :-

failed to set default font path '/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/hp_roman8/75dpi/,/usr/lib/X11/fonts/ms.st/typefaces/'
Fatal server error:
could not open default font 'fixed'

How can I fix this?


3 REPLIES 3
HGN
Honored Contributor

Re: VNC server not recognising true type fonts

Hi

What did u use to extract the file? I think u need to use tar -xf to get the unix file extension. Not sure if the font needs to be rebuilt using /sbin/init.d/xfs file.each time xfs script is run, it will check whether there is a fonts.dir file in each listed font path. If fonts.dir is missing in a path font list needs to be rebuilt.

Rgds

Gopi
Phil Daws_4
Occasional Advisor

Re: VNC server not recognising true type fonts

This was already there as part of a standard HP-UX 11i installation. As you can seen from the fonts.dir timestamp I created that today.
Ermin Borovac
Honored Contributor

Re: VNC server not recognising true type fonts

Are your TT fonts in /usr/lib/X11/fonts/ms.st or /usr/lib/X11/fonts/ms.st/typefaces directory? They should be in /usr/lib/X11/fonts/ms.st/typefaces directory.

Other thing to try is configure font server on your 11i system and make VNC use it. Font server config file (/etc/X11/fs/config) should include /usr/lib/X11/fonts/ms.st in the catalogue variable.

$ vncserver -fp tcp/:7000