On Wed, Aug 09, 2000 at 05:29:47PM +0200, Luca wrote:
> Hi guys,
> I have installed the latest cvs snapshot of blackbox.
> It works fine but when i try to use the "reaction" theme that use the
> snap.pcf font for toolbar , titlebar and in the menu , the font on these
> is not the snap.pcf font but a big fixed font.
> The snap.pcf is installed correctly.
>
> Copied to /usr/X11R6/lib/X11/fonts/misc.
> cd in this dir and "mkfontdir"
> xset fp rehash
>
> The snap font works with bbkeys and when i try to call it with
> xterm -fn snap
>
> I'm using Debian woody with Linux 2.4.0test5.
> Is there anyone with my same problem ?
> Thanks for your attention and sorry for my bad english.
> bye
> Luca
>
What locale are you using? Using either C or POSIX everything
works fine on my box. There are problems if it's anything other
than C or POSIX, since then Blackbox will use fontsets instead
of a single font. Since most custom fonts don't cover all the
characters required by the current locale, extra fonts are added,
and X is using those.
Blackbox tries to pick the extra fonts to be a reasonable size,
but it can only really do that when the font name includes the
pixel size. Since most custom fonts don't do this, a default
pixel size is used -- hence the big font.
To an extent the problem boils down to the custom fonts not
providing any information about their character-set encoding, so
they are more or less ignored in the font set, even if they happen
to contain a given character. The suggestion to set up a
fully-qualified font alias seems likely to be the correct approach,
but I haven't tried it myself.
Mind you, this won't completely deal with the problem, since it
will only make X actually use the custom fonts in a fontset;
characters in the current locale not covered by the custom font
(i.e. any non-ASCII character) will be drawn in a default (ugly)
font.
You can arrange for X to use a different font to fill in the holes
in the custom font, but no matter what you can still end up with
text using two different fonts.
Jeff Raven