SUMMARY: Font problem

From: Dave Wreski (dave@nic.com)
Date: Mon Jan 18 1999 - 16:56:10 CST


I wrote:
> Hi all. I'm using a Solaris 2.6 on an Ultra1, with the generic video card
> When I start netscape communicator, I see the following error:
>
> Warning: Cannot convert string
> "-*-helvetica-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct

One of two things is causing it.

(1) You have the fonts in question, but don't have them properly referenced
    in your fonts.dir.

Each font directory in X11 has a file called fonts.dir which maps names
of fonts. A line in my /usr/X11/lib/fonts/75dpi/fonts.dir looks like this:

helvBO12.pcf.gz -adobe-helvetica-bold-o-normal--12-120-75-75-p-69-iso8859-1

The first part is the name of the font file, and the second file is the
name of the font itself.

(2) You don't have that font at all. (I hope this is self-explanatory.)

Check to see if you have the fonts Netscape complained about. I've
guessed at filenames here (I'm at home, which means I can't easily
get to anything but a linux box):

Chris wrote:

I've seen this around before (but I forget the specific outcome). You
might check in the "Communicator for Unix" News group on secnews.netscape.com
(port 563).

In addition, I installed the optional font package, SUNWxwoft, and I believe
that solved my problem. It was also necessary to add the following lines to
/usr/openwin/lib/openwin-init (or your $HOME/.openwin-init) file:

xset +fp /usr/openwin/lib/X11/font/75dpi
xset fp rehash

Thanks to:
Rich Lafferty <rich@alcor.concordia.ca>
Chris Tubutis <chris@tci.com>



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:14 CDT