[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: char-displayable-p issue

From: Michael Mauger
Subject: Re: char-displayable-p issue
Date: Wed, 22 Oct 2003 09:00:43 -0700 (PDT)

--- Kenichi Handa <address@hidden> wrote:
> In article <address@hidden>,
> Michael Mauger <address@hidden> writes:
> > I can't reproduce that bug. When I turned on ruler-mode, I
> > see both characters in the ruler head. Isn't it a bug
> > specific to Windows?
> > Yes, it seems the problem is specific to Windows. Work
> > well on my GNU/Linux box.
> > I'm not sure that this is just a Windows issue -- it may
> > affect some X implementations as well.  The problem seems
> > to be that the wildcard pattern generated in
> > `char-displayable-p' is not matching multiple hyphen
> > separated portions of the font name.  That is,
> > '-*-*-iso8859-1' doesn't match any fonts while
> > '-*-*-*-*-*-*-*-*-*-*-*-*-iso8859-1' does.
> > Here's a patch that corrects the problem (and should work
> > reliably on all X implementations) but which runs very
> > slowly on Windows.
> Ummm, I didn't know that such a server exists.  How about
> '-*-iso8859-1'?  Doest it match all iso8859-1 fonts?  If so,
> instead of just changing "-*-" to "-*-*-*-*-*-*-*-*-*-*-*-",
> generating the most compact font-pattern (i.e. no succeeding
> wildcards) will solve the problem without making Windows
> version slow.
> Could you try that?
> Even if that doesn't work, your patch is not enough.  I
> think we must change the length of "-*-..-*-" according to
> the form of car of font-pattern ("FOUNDRY-FAMILY",
> "*FAMILY", or "FOUNDRY*")

I tried '-*-iso8859-1' and it also failed.  The problem appears to be in
the Windows implementation of x-list-fonts (w32_list_fonts in
src/w32fns.c).  The wildcarding is obviously not working as intended.

(length (x-list-fonts "-*-*-*-*-*-*-*-*-*-*-*-*-iso8859-1")) 
= 584
(length (x-list-fonts "-*-iso8859-1"))
= 0

I'll take a look at w32_list_fonts but I am very rusty on Windows

-- Michael

Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

reply via email to

[Prev in Thread] Current Thread [Next in Thread]