From: Stephen Berman <Stephen.Berman@gmx.net>
To: emacs-devel@gnu.org
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.60; Still font problems
Date: Thu, 15 May 2008 10:32:28 +0200 [thread overview]
Message-ID: <878wycc6hv.fsf@escher.local.home> (raw)
In-Reply-To: E1JwY2P-0002iA-Pz@etlken.m17n.org
On Thu, 15 May 2008 16:38:05 +0900 Kenichi Handa <handa@m17n.org> wrote:
> In article <1393-Thu15May2008080518+0100-jpff@codemist.co.uk>, jpff <jpff@codemist.co.uk> 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
next prev parent reply other threads:[~2008-05-15 8:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-14 16:52 23.0.60; Still font problems jpff
2008-05-15 0:43 ` Kenichi Handa
2008-05-15 7:05 ` jpff
2008-05-15 7:38 ` Kenichi Handa
2008-05-15 8:32 ` Stephen Berman [this message]
2008-05-15 8:40 ` Jason Rumney
2008-05-15 10:03 ` Stephen Berman
2008-05-15 13:36 ` Stephen Berman
2008-05-16 0:41 ` Kenichi Handa
2008-05-16 14:44 ` Stephen Berman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878wycc6hv.fsf@escher.local.home \
--to=stephen.berman@gmx.net \
--cc=emacs-devel@gnu.org \
--cc=emacs-pretest-bug@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.