emacs-devel
[Top][All Lists]
Advanced

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

Re: 23.0.60; Still font problems


From: Stephen Berman
Subject: Re: 23.0.60; Still font problems
Date: Thu, 15 May 2008 10:32:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

On Thu, 15 May 2008 16:38:05 +0900 Kenichi Handa <address@hidden> wrote:

> In article <address@hidden>, jpff <address@hidden> writes:
>> In part.  After i fixed the typo in src/emacs-icon.h on line 21 it
>> compiles.  I can run with the default (and very ugly) font,
>
> I don't understand why the default font is very ugly.  Emacs
> by default tries these:
>
> -adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1
> -misc-fixed-medium-r-normal-*-*-140-*-*-c-*-iso8859-1
> -*-*-medium-r-normal-*-*-140-*-*-c-*-iso8859-1
> -*-*-medium-r-*-*-*-*-*-*-c-*-iso8859-1
> -*-fixed-*-*-*-*-*-140-*-*-c-*-iso8859-1
> fixed
>
> Do you mean that Emacs finds none of them?
>
>> but the mechanism I have been using for years to set a
>> better font fails.
>
>> emacs -lsp 2 -fn "-adobe-courier-bold-r-normal--*-120-*-*-m-*-iso8859-1" 
>> -geometry 84x45+64+10
>> Font `-adobe-courier-bold-r-normal--*-120-*-*-m-*-iso8859-1' is not defined
>
>> Using xlsfonts I see
>> -adobe-courier-bold-r-normal--12-120-75-75-m-70-iso8859-1
>> -adobe-courier-bold-r-normal--17-120-100-100-m-100-iso8859-1
>
>> amongst others.  For emacs 22 this command works, so something has
>> changed incompatibly
>
> When I start Emacs as you do, it starts without an error and
> uses this font:
> -adobe-courier-bold-r-normal--17-120-100-100-m-100-iso8859-1
>
> So, I don't understand why it doesn't work for you.  Please
> rebuild Emacs and run Emacs under gdb as below:
> % cd .../emacs/src
> % rm xfont.o
> % make CFLAGS=-g
> % gdb emacs
> (gdb) br xfont_list
> (gdb) run -fn "-adobe-courier-bold-r-normal--*-120-*-*-m-*-iso8859-1"
> and when it stops at xfont_list, check the argument `spec' by
> (gdb) pr spec
> and step the code one line by one to find what is wrong.

I observe what the OP reported also on my system, so I tried what you
suggest, and this is the result:

(gdb) br xfont_list
Breakpoint 3 at 0x81c9e11: file xfont.c, line 308.
(gdb) run -Q -fn "-adobe-courier-bold-r-normal--*-120-*-*-m-*-iso8859-1"
Starting program: /Users/steve/cvsroot/emacs/src/emacs -Q -fn 
"-adobe-courier-bold-r-normal--*-120-*-*-m-*-iso8859-1"
[Thread debugging using libthread_db enabled]
[New Thread 0xb6e958d0 (LWP 16947)]
[Switching to Thread 0xb6e958d0 (LWP 16947)]

Breakpoint 3, xfont_list (frame=141326084, spec=138016964) at xfont.c:308
308       FRAME_PTR f = XFRAME (frame);
(gdb) pr spec
The history is empty.


I suppose this is also why, when I type `M-x set-frame-font', I get no
completions -- TAB returns "[No match]", and `M-: (x-list-fonts
"-adobe-courier-bold-r-normal--*-120-*-*-m-*-iso8859-1")' returns nil.

Steve Berman





reply via email to

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