Loading X11R6.3 fonts on an Openwin X server?

Loading X11R6.3 fonts on an Openwin X server?

Post by Paul D. Smi » Wed, 31 Mar 1999 04:00:00



We're running on Solaris 2.5.1 on Ultras, using the Openwin X server.
We've also got X11R6.3 from MIT/TOG compiled for Solaris, and some
people on sparcs still use it (there's no X server for the ultras in our
dist).  It works OK for them.

Someone here wants to use the fonts from the X11R6.3 dist with their
openwin X server.  Yes, I know they're the same.

I see no reason why it shouldn't work, but in fact it doesn't:

  misc$ xset fp+ /usr/X11R6.3/lib/X11/fonts/misc/
  xset:  bad font path element (#10), possible causes are:
      Directory does not exist or has wrong permissions
      Directory missing fonts.dir
      Incorrect font server address or syntax

  misc$ xset fp= /usr/X11R6.3/lib/X11/fonts/misc/
  xset:  bad font path element (#0), possible causes are:
      Directory does not exist or has wrong permissions
      Directory missing fonts.dir
      Incorrect font server address or syntax

Note that fonts.dir does exist, and looks OK to me.  We're not using any
font servers and the permissions on the directories and files look
identical.  I've tried recreating it with the mkfontdir in openwin and
the one in X11R6.3, and I've tried using the xset in both.  The above is
from the X11R6.3 xset; the one in openwin gives a different error:

  $ /usr/openwin/bin/xset fp= /usr/X11R6.3/lib/X11/fonts/misc/
  X Error of failed request:  BadValue (integer parameter out of range for operation)
    Major opcode of failed request:  51 (X_SetFontPath)
    Value in failed request:  0x0
    Serial number of failed request:  7
    Current serial number in output stream:  9

I've added other fonts (for example, the freeware fonts that are used
with GIMP) with no problems.  I checked the FAQ but no joy.

Anyone have any ideas?

--
-------------------------------------------------------------------------------

 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.

 
 
 

Loading X11R6.3 fonts on an Openwin X server?

Post by Kjetil Torgrim Homm » Thu, 01 Apr 1999 04:00:00


[Paul D. Smith]

Quote:>   I see no reason why it shouldn't work, but in fact it doesn't:

>     misc$ xset fp+ /usr/X11R6.3/lib/X11/fonts/misc/
>     xset:  bad font path element (#10), possible causes are:
>         Directory does not exist or has wrong permissions
>         Directory missing fonts.dir
>         Incorrect font server address or syntax

Perhaps stating the obvious, but: Remember that all the directories
and the font files need to be readable by everyone.  Check it all the
way down to the root.

If you're still having problems, perhaps you could include a snippet
of fonts.dir (and fonts.alias if present).

Kjetil T.

 
 
 

Loading X11R6.3 fonts on an Openwin X server?

Post by Paul D. Smi » Thu, 01 Apr 1999 04:00:00



  kth> Perhaps stating the obvious, but: Remember that all the directories
  kth> and the font files need to be readable by everyone.  Check it all the
  kth> way down to the root.

  kth> If you're still having problems, perhaps you could include a snippet
  kth> of fonts.dir (and fonts.alias if present).

Looks OK to me:

misc$ ls -ald /
drwxr-xr-x 179 root     other       3072 /
misc$ ls -ald /usr
drwxrwxr-x  37 root     sys         1024 /usr
misc$ ls -ald /usr/X11R6.3
drwxr-xr-x   6 root     other        512 /usr/X11R6.3
misc$ ls -ald /usr/X11R6.3/lib
drwxr-xr-x   3 root     other       1536 /usr/X11R6.3/lib
misc$ ls -ald /usr/X11R6.3/lib/X11
drwxr-xr-x  19 root     other        512 /usr/X11R6.3/lib/X11
misc$ ls -ald /usr/X11R6.3/lib/X11/fonts
drwxr-xr-x   8 root     other        512 /usr/X11R6.3/lib/X11/fonts
misc$ ls -ald /usr/X11R6.3/lib/X11/fonts/misc
drwxr-xr-x   2 root     other       2048 /usr/X11R6.3/lib/X11/fonts/misc
misc$ ls -ald /usr/X11R6.3/lib/X11/fonts/misc/fonts.dir
-rw-r--r--   1 root     other       5384 /usr/X11R6.3/lib/X11/fonts/misc/fonts.dir

misc$ ls
10x20.pcf      12x24.pcf      12x24rk.pcf    5x7.pcf        5x8.pcf
6x10.pcf       6x12.pcf       6x13.pcf       6x13B.pcf      6x9.pcf
7x13.pcf       7x13B.pcf      7x14.pcf       7x14B.pcf      7x14rk.pcf
8x13.pcf       8x13B.pcf      8x16.pcf       8x16rk.pcf     9x15.pcf
9x15B.pcf      clB6x10.pcf    clB6x12.pcf    clB8x10.pcf    clB8x12.pcf
clB8x13.pcf    clB8x14.pcf    clB8x16.pcf    clB8x8.pcf     clB9x15.pcf
clI6x12.pcf    clI8x8.pcf     clR4x6.pcf     clR5x10.pcf    clR5x6.pcf
clR5x8.pcf     clR6x10.pcf    clR6x12.pcf    clR6x13.pcf    clR6x6.pcf
clR6x8.pcf     clR7x10.pcf    clR7x12.pcf    clR7x14.pcf    clR7x8.pcf
clR8x10.pcf    clR8x12.pcf    clR8x13.pcf    clR8x14.pcf    clR8x16.pcf
clR8x8.pcf     clR9x15.pcf    cursor.pcf     deccurs.pcf    decsess.pcf
fonts.alias    fonts.dir      gb16fs.pcf     gb16st.pcf     gb24st.pcf
hanglg16.pcf   hanglm16.pcf   hanglm24.pcf   heb6x13.pcf    heb8x13.pcf
jiskan16.pcf   jiskan24.pcf   k14.pcf        nil2.pcf       olcursor.pcf
olgl10.pcf     olgl12.pcf     olgl14.pcf     olgl19.pcf

misc$ head fonts.dir
72
6x12.pcf -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso646.1991-irv
6x13.pcf -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
6x10.pcf -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-1
7x13.pcf -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1
7x14.pcf -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
clR8x12.pcf -schumacher-clean-medium-r-normal--12-120-75-75-c-80-iso646.1991-irv
6x9.pcf -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso646.1991-irv
clR8x13.pcf -schumacher-clean-medium-r-normal--13-130-75-75-c-80-iso646.1991-irv
clR8x10.pcf -schumacher-clean-medium-r-normal--10-100-75-75-c-80-iso646.1991-irv

misc$ head fonts.alias
! $XConsortium: fonts.alias,v 1.31 94/04/11 12:28:00 gildea Exp $
fixed        -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
variable     -*-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-1
5x7          -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-1
5x8          -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso646.1991-irv
6x9          -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso646.1991-irv
6x10         -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-1
6x12         -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso646.1991-irv
6x13         -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
6x13bold     -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-1

*sigh*.

Just for giggles I also tried compressing the .pcf files and re-running
mkfontdir, but I got the same results (I noticed most or all the .pcf
files in the openwin dist were compressed, and I had no better ideas...)

--
-------------------------------------------------------------------------------

 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.

 
 
 

1. Building X11R6.6 Xserver which links to /usr/openwin/server/lib/libfont.so.1

Hi!

----

Does anyone know if it is possible to build a Xserver from the X11R6.6
source which uses the (TrueType-enabled) Xsun font library
/usr/openwin/server/lib/libfont.so.1 (yes, I know, "private" API :) ?

----

Bye,
Roland

--
  __ .  . __


  /O /==\ O\  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
 (;O/ \/ \O;) TEL +49 641 99-41370 FAX +49 641 99-41359

2. X environment, start up

3. HOW TO SET UP FONT SERVER UNDER OPENWIN ????? .....

4. Comm: Alpha/Sparc/Intel/SGI Linux/NT systems

5. Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo

6. exporting macro definitions from 'make'

7. Xfs font server Info - How to accelerate X11R6

8. ASISONLINE.org: anyone heard of it?

9. mixing openwin/motif with X11R6

10. xview under X11R6 - Does openwin need to be recompiled?

11. X11R6, openwin, and zombies

12. XDM: X11R6 vs. OpenWin on Sol 2.4 with NCD xterms

13. Openwin (Xview3L5) and X11R6