Operating System - HP-UX
1833869 Members
1814 Online
110063 Solutions
New Discussion

Installing TTF fonts (for Oracle, what else?!)

 
Carl Houseman
Super Advisor

Installing TTF fonts (for Oracle, what else?!)

I've got some Chinese fonts to install for Oracle Reports. Putting together bits and pieces of other writeups, I'm running into an error.

First, I did the steps to update the fonts.dir in /usr/X11/fonts/ms.st/typefaces as described here:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=937114

Oracle is using Xvnc for rendering so I set my DISPLAY variable to the the Xvnc server and am attempting to modify the font path with the following:

xset fp= /usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/iso_8859.1/100dpi/,/usr/lib
/X11/fonts/iso_8859.1/75dpi/,/usr/lib/X11/fonts/ms.st/typefaces/

But this command returns:

X Error of failed request: 86
Major opcode of failed request: 51 (X_SetFontPath)
Serial number of failed request: 7
Current serial number in output stream: 9

Any ideas? Thanks everyone.

Carl
1 REPLY 1
Carl Houseman
Super Advisor

Re: Installing TTF fonts (for Oracle, what else?!)

Did some more messing around, added the .../ms.st/typefaces/ font path to the vncserver script. Bottom line, Xvnc doesn't like it.
------
Xvnc Free Edition 4.1.2 - built May 12 2006 18:16:06
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 0, unknown

Wed Apr 2 18:32:02 2008
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5910
vncext: created VNC server for screen 0
error opening security policy file /usr/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/lib/X11/fonts/ms.st/typefaces/, removing f
rom list!
------
From an Exceed session, I can xset +fp the same path that Xvnc dislikes, and it does it without any error and returns the path for xset -q. But, having done that, I still can't get verification that the Chinese fonts are available with xlsfonts.

From what I can tell I'm not supposed to need a fonts.scale with truetype fonts.

So I need two things which may or may not be related:

1. I need to be able to add these fonts to the Xvnc path - newer version of Xvnc maybe?

2. Having added them I need them to verify with xlsfonts. The results from the Exceed session suggest more to be done with the fonts themselves.

Note that we aren't running xfs at all - have never needed it before to make Xvnc sessions work. Do we need it for this specifically?