Re: FVWM: Non iso8995-1 fonts and the TaskBar

From: Olivier Chapuis <olivier.chapuis_at_free.fr>
Date: Thu, 5 Sep 2002 11:48:26 +0200

On Mon, Aug 12, 2002 at 06:29:28PM +0100, John Latham wrote:
> FvwmTaskBar crashes, quietly without any trace, in 2.4.6 as shipped by Red Hat
> 7.3 (multi-byte is enabled) and also in 2.4.8 when compiled with multibyte
> option, but not otherwise.
>
> The task bar just refused to appear, and left no error message not even a core
> dump. Don't ask me how I figured out this was with the setting that caused the
> problem
>
> *FvwmTaskBarFont -*helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
>
> and changing it to the following makes it work okay:
>
> *FvwmTaskBarFont -*helvetica-medium-r-*-*-12-*-*-*-*-*-iso8859-1
>
> I assume it was picking up some font encoding that FvwmTaskBar cannot handle
> -- does that make sense?
>

There is a bug in the taskbar, if the SelFont is not found the taskbar
exit (the "default" font is not tried!). This will be fixed in the next
stable release. Any way if you use:

        -*-*helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
         ^^

I think that the taskbar will work as you want (no locale change and this
is better than enforcing the charset).
I still do not understand why with
        "-*helvetica-medium-r-*-*-12-*-*-*-*-*-*-*"
the font loading procedure fails (as xlsfont show me some fonts, but
xlsfont do not use the "i18n" procedure for querying font).
But I do not think that it is fvwm fault. Maybe a "*" count issue.

> This behaviour was still happening after I changed to POSIX locale (see
> previous message): it seems you need BOTH the posix locale and the iso8859-1
> to make it work in 2.4, if multi-byte is emabled.
>
> Similarly, FvwmPager was using the wrong font until I put the iso8859-1 spec
> on that too. At least it wasn't crashing!
>

Use "-*-*helvetica-medium-r-*-*-12-*-*-*-*-*-*-*"

> All this seems to work fine on 2.5.2, no need for locale change or iso8859-1
> specification.
>
> This all makes me think I could do with learning a *bit* more about X fonts
> and their relationships to locales. Can anyone suggest a good (implies
> short...) summary on the matter?
>

"man XCreateFontSet" and the xlfd and i18nFramework documents in the X doc
directory (something like /usr/X11R6/lib/X11/doc). Maybe you will not
find this docs "good".

Regards, Olivier

--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu Sep 05 2002 - 05:19:31 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:53 BST