Operating System - HP-UX
1837257 Members
2411 Online
110115 Solutions
New Discussion

Adding Arial Fonts to HP-UX 11.11

 
Ian Dennison_1
Honored Contributor

Adding Arial Fonts to HP-UX 11.11

or not, as it turns out.

Oracle Reporter needs Arial fonts to build its PDFs for a report. However, the DBA has sourced some fonts, and no matter how I try, I cannot get the X Fonts Server to recognise these.

I have added the fonts to directory /usr/lib/X11/fonts/ms.st/, generated the fonts.dir file and updated /etc/X11/fs/config, and stopped and started /sbin/init.d/xfs. Yet they will not show up on "xlsfonts" nor does any error show up on syslog.log.

Can anyone offer some pointers on this one? Share and Enjoy! Ian
Building a dumber user
4 REPLIES 4
Fred Ruffet
Honored Contributor

Re: Adding Arial Fonts to HP-UX 11.11

Don't you need something like "xset fp+ " or "xset fp rehash" ?

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Ian Dennison_1
Honored Contributor

Re: Adding Arial Fonts to HP-UX 11.11

Thanks Fred. Tried and failed unfortunately.

The only result I get for "xlsfonts |grep -i aria" is the result of "variable".

Is it worth programming in a reboot this weekend and seeing if that works?

Share and Enjoy! Ian
Building a dumber user
Fred Ruffet
Honored Contributor

Re: Adding Arial Fonts to HP-UX 11.11

I don't think reboot will give much more than restarting xfs, but if you don't mind for your uptime, why not ? :)

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Ermin Borovac
Honored Contributor

Re: Adding Arial Fonts to HP-UX 11.11

Have you used stmkdirs or mkfontdir command to generate fonts.dir? With TrueType fonts it is recommended to use stmkdirs.

# /usr/sbin/stmkdirs /usr/lib/X11/fonts/ttf

Also it seems that if you put fonts into directory with suffix .st (e.g. ms.st) then you have to put actual fonts in typefaces subdirectory and run /usr/sbin/stmkdirs on typefaces subdirectory to generate fonts.dir. /etc/X11/fs/config will have /usr/lib/X11/fonts/ms.st (not /usr/lib/X11/fonts/ms.st/typefaces) as a correct entry.

If you move your fonts to a directory without .st suffix (e.g. /usr/lib/X11/fonts/ttf) then you don't need typefaces subdirectory.

Verify that fonts are loaded with

# fslsfonts -server :7000

Hope this helps.