Jens Gjerdbakken wrote:
> 
> I run Slackware 7.0 and have no problems with installing .pcf fonts and
> making them work with Blackbox. But this is not the fact with RedHat,
> 6.1, 6.2 and 7.0 user have complained to me. And the themes look _bad_.
> 
> This is the install approach:
> 
> mv fontname.pcf /usr/X11R6/lib/X11/fonts/misc
> cd /usr/X11R6/lib/X11/fonts/misc
> /usr/X11R6/bin/mkfontdir
> /usr/X11R6/bin/xset -fp rehash
> 
> /etc/rc.d/init.d/xfs restart

> This goes smooth, with no errors of no kind. But then the themes comes out
> looking butt-ugly.
> 
> If you run xterm (or any term); xterm -fn fontname, the terminal displays
> the fonts right. This I find strange.
> 
> Has anyone the same problems? Or preferably a solution?

I know exactly what you mean.
And, thanks to Dave Terry, have a solution.

Suppose I want to add the font "snap.pcf.gz".
Copy it to the directory you want (/usr/X11R6/lib/X11/fonts/misc).
Run mkfontdir in that directory.
mkfontdir adds snap.pcf.gz - but for some reason the font server doesn't
like the format.

So modify the lines containing mention of snap with the following:
In fonts.dir:

    snap.pcf.gz -misc-snap-medium-r-normal--12-120-75-75-c-*-iso8859-1

In fonts.alias:

    snap -misc-snap-medium-r-normal--12-120-75-75-c-*-iso8859-1

Also you should modify the theme

In the Blackbox theme: 

    *Font:  -misc-snap-medium-r-normal-*-*-120-*-*-c-*-iso8859-1

Finally run xset -fp rehash in the directory where all this stuff is
happening
(/usr/X11R6/lib/X11/fonts/misc)

Then you should be up and running.

Eventually I'll document this up - (there's an open question relating to
this on bb.themes.org that I made that I should answer) - however I want
to do a bit more testing, I played around with the above format strings
and some worked and some didn't.  I'd like to know why exactly Red Hat
(and according to Dave suse too) behave strangely.

Anyone with any further information on this, please email me with your
findings.

Gord

Reply via email to