Operating System - HP-UX
1757744 Members
1756 Online
108863 Solutions
New Discussion юеВ

installing truetype fonts in hp-ux 11.00

 
Saurav Sarkar
Advisor

installing truetype fonts in hp-ux 11.00

hi,
how do I install truetype fonts in hp-ux 11.00?
my current font path as reported by xset q is

Font Path:
tcp/:7000,/usr/lib/X11/fonts/hp_roman8/75dpi/,/usr/lib/X11/fonts/iso_8859.1/100dpi/,/usr/lib/X11/fonts/iso_8859.1/75dpi/,/usr/lib/X11/fonts/hp_kana8/,/usr/lib/X11/fonts/iso_8859.2/75dpi/,/usr/lib/X11/fonts/iso_8859.5/75dpi/,/usr/lib/X11/fonts/iso_8859.6/75dpi/,/usr/lib/X11/fonts/iso_8859.7/75dpi/,/usr/lib/X11/fonts/iso_8859.8/75dpi/,/usr/lib/X11/fonts/iso_8859.9/75dpi/,/usr/lib/X11/fonts/misc/,/opt/graphics/PEX5/fonts/usascii/stroke,/opt/graphics/PEX5/fonts/hp_japanese/stroke,/opt/graphics/PEX5/fonts/ascii/stroke

but whenever I try to use xset fp+ `pwd` on a
directory like /usr/lib/X11//fonts/ms.st/typefaces iI get the
following problem:

xset: bad font path element (#41), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax

I directory has fonts.dir. what permission does
xset expect? thanks

saurav
8 REPLIES 8
Ollie R
Respected Contributor

Re: installing truetype fonts in hp-ux 11.00

Hi Saurav,

What is the config of where you're typing this command in? Is it on a console? Through Reflection? How?

The problem is that this path is set from the Server, not necessarily the system that you're typing on.

So, for example, if I connect to a system via Reflection, the font path visible by issuing "xset q" contains all references to "c:/program files/reflection/fonts", which obviously cannot exist on my Unix box.

How does this compare with your set up?

Ollie.
To err is human but to not award points is unforgivable
Saurav Sarkar
Advisor

Re: installing truetype fonts in hp-ux 11.00

I am typing this on my console. I have no idea
what Reflection is.

saurav
RolandH
Honored Contributor

Re: installing truetype fonts in hp-ux 11.00

Hi Saurav,

could it be that you have only added true type fonts to dir /usr/lib/X11/fonts/ms.st/typefaces
than it is enough if you do only

# mkfontdir /usr/lib/X11/fonts/ms.st/typefaces
# xset fp rehash

You must do it on your FontServer not on your Client

Check on your FontServer if the dir /usr/lib/X11/fonts/ms.st is listed in /etc/X11/fs/config
in the catalogue section

If I do xset +fp /usr/lib/X11/fonts/ms.st
I get this error message, too.
I think it depends of the format of the fonts.
manpage from X says:

...
The server supports scaling from outline
fonts and bitmap fonts.
...
Bitmap font files are usually created by compiling a textual font
description into binary form, using bdftopcf. Font databases are
created by running the mkfontdir program in the directory containing
the source or compiled versions of the fonts. Whenever fonts are
added to a directory, mkfontdir should be rerun so that the server can
find the new fonts. To make the server reread the font database,
reset the font path with the xset program. For example, to add a font
to a private directory, the following commands could be used:

% cp newfont.pcf ~/myfonts
% mkfontdir ~/myfonts
% xset fp rehash
.....


Hope it helps !!!

Roland
Sometimes you lose and sometimes the others win
Saurav Sarkar
Advisor

Re: installing truetype fonts in hp-ux 11.00

Hi Roland,
thanks for replying. I had to do

# mkfontdir /usr/lib/X11/fonts/ms.st/typefaces
# xset fp rehash
# xset fp+ /usr/lib/X11/fonts/ms.st/typefaces

to get it working. I also did the same thing on
some Vera fonts I downloaded(which was the actual reason for trying so). but when I tried it on /usr/lib/X11/fonts/type1/typefaces, I got the same problem

xset: bad font path element (#41), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax

I also tried doing stmkdirs instead of mkfontdirs but it didn't help. Also I can't find the newly installed fonts in xlsfonts. My /etc/X11/fs/config is

catalogue = /usr/lib/X11/fonts/ttf-bitstream-vera-1.10,/home/atm/fonts/truetype/Vera,/usr/lib/X11/fonts/ms.st/typefaces,/usr/lib/X11/fonts/TrueType/chinese_t.st,/usr/lib/X11/fonts/TrueType/chinese_s.st,/usr/lib/X11/fonts/TrueType/korean.st,/usr/lib/X11/fonts/TrueType/japanese.st,/usr/lib/X11/fonts/type1.st/typefaces,/usr/lib/X11/fonts/hp_roman8/75dpi/,/usr/lib/X11/fonts/iso_8859.1/100dpi/,/usr/lib/X11/fonts/iso_8859.1/75dpi/,/usr/lib/X11/fonts/iso_8859.15/75dpi/,/usr/lib/X11/fonts/hp_kana8/,/usr/lib/X11/fonts/hp_japanese/100dpi/,/usr/lib/X11/fonts/hp_japanese/75dpi/,/usr/lib/X11/fonts/hp_korean/75dpi/,/usr/lib/X11/fonts/hp_chinese_s/75dpi/,/usr/lib/X11/fonts/hp_chinese_t/75dpi/,/usr/lib/X11/fonts/iso_8859.2/75dpi/,/usr/lib/X11/fonts/iso_8859.5/75dpi/,/usr/lib/X11/fonts/iso_8859.6/75dpi/,/usr/lib/X11/fonts/iso_8859.7/75dpi/,/usr/lib/X11/fonts/iso_8859.8/75dpi/,/usr/lib/X11/fonts/iso_8859.9/75dpi/,/usr/lib/X11/fonts/ttfjpn.st,/usr/lib/X11/fonts/ifojpn.st,/usr/lib/X11/fonts/misc/,/opt/gnome/share/fonts/default/Type1,/usr/lib/X11/fonts/ttf.st/sfd,/home/atm/DGS/share/gnu-gs-fonts,/home/atm/DGS/share/ghostscript-fonts,/usr/dt/config/xfonts/C

and xset q shows
Font Path:
tcp/:7000,/usr/lib/X11/fonts/hp_roman8/75dpi/,/usr/lib/X11/fonts/iso_8859.1/100dpi/,/usr/lib/X11/fonts/iso_8859.1/75dpi/,/usr/lib/X11/fonts/hp_kana8/,/usr/lib/X11/fonts/iso_8859.2/75dpi/,/usr/lib/X11/fonts/iso_8859.5/75dpi/,/usr/lib/X11/fonts/iso_8859.6/75dpi/,/usr/lib/X11/fonts/iso_8859.7/75dpi/,/usr/lib/X11/fonts/iso_8859.8/75dpi/,/usr/lib/X11/fonts/iso_8859.9/75dpi/,/usr/lib/X11/fonts/misc/,/opt/graphics/PEX5/fonts/usascii/stroke,/opt/graphics/PEX5/fonts/hp_japanese/stroke,/opt/graphics/PEX5/fonts/ascii/stroke,/usr/lib/X11/fonts/ms.st/typefaces,/usr/lib/X11/fonts/ttf-bitstream-vera-1.10,/home/atm/fonts/truetype/Vera

saurav
RolandH
Honored Contributor

Re: installing truetype fonts in hp-ux 11.00

Hi Saurav,

I can't find /usr/lib/X11/fonts/type1/typefaces
in your catalogue but I see there /usr/lib/X11/fonts/type1.st/typefaces

Is this the problem?
Could it be a typo? If not ! try to copy all your *.ttf files from dir /usr/lib/X11/fonts/type1/typefaces to
/usr/lib/X11/fonts/type1.st/typefaces
# mkfontdir /usr/lib/X11/fonts/type1.st/typefaces
# xset fp rehash
# xset +fp /usr/lib/X11/fonts/type1.st/typefaces

Another thing you should check - Was your download from the vera ttf correct?


Roland

Do not forget to assign points ;-))

Sometimes you lose and sometimes the others win
Saurav Sarkar
Advisor

Re: installing truetype fonts in hp-ux 11.00

hi Roland,
that was a typo. And I installed the Vera fonts from OpenOffice.org installation directory and OpenOffice display them ok.

saurav
RolandH
Honored Contributor

Re: installing truetype fonts in hp-ux 11.00

So your problem is fixed(I hope so) or is it still there ?!?

Roland
Sometimes you lose and sometimes the others win
hp admin
Frequent Advisor

Re: installing truetype fonts in hp-ux 11.00

Please, does you arrive to a solution to this problem.