unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: Sven Joachim <svenjoac@gmx.de>
Cc: 3228@emacsbugs.donarmstrong.com
Subject: bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
Date: Fri, 08 May 2009 10:49:50 +0900	[thread overview]
Message-ID: <E1M2FDi-0007Ol-Gm@etlken> (raw)
In-Reply-To: <87bpq4932u.fsf@turtle.gmx.de> (message from Sven Joachim on Thu,  07 May 2009 20:32:09 +0200)

In article <87bpq4932u.fsf@turtle.gmx.de>, Sven Joachim <svenjoac@gmx.de> writes:

> > Are you sure that you followed the above procedure exactly
> > without doing anything else?

> Yes.  It is probably due to my X resource setting:

> Emacs.font:-adobe-courier-medium-r-normal--*-120-*-*-m-*-iso10646-1

> Should I replace iso10646 with iso8859?

No, it shouldn't matter.

> > It seems that you have three kinds of courier fonts:
> >       X: -adobe-courier-* (bitmap fonts, same as below)
> >     Xft: -Adobe-courier-* (/usr/share/fonts/X11/*dpi/cour*.pcf.gz)
> > X alias: -urw-nimbus mono l-* (Type1 scalable fonts)

> Yes, /usr/share/fonts/X11/Type1/fonts.alias defines these aliases:

> -adobe-courier-medium-r-normal--0-0-0-0-p-0-iso8859-1 "-urw-nimbus mono l-regular-r-normal--0-0-0-0-p-0-iso8859-1"

Ok, I see.  It seems that the problem here is this:

o menu-set-font returns the font name "courier 12"; i.e no
	information about spacing, dpi
o no bitmap courier font has the exact pixelsize for 12pt on your screen.
o so Emacs selected a scalable font, that is the above "nimbus mono l" font.

I think "% emacs -fn courier-12" will also select the
"nimbus mono l" font in this environment.

Please try:
M-x set-default-font RET courier-12:spacing=m RET

Doesn't it select a bitmap font, perhaps the same one as this
startup font?

  xft:-Adobe-Courier-normal-normal-normal-*-17-*-*-*-m-100-iso10646-1

---
Kenichi Handa
handa@m17n.org






  parent reply	other threads:[~2009-05-08  1:49 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-06  7:51 bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus Sven Joachim
2009-05-07  6:57 ` Kenichi Handa
2009-05-07  7:19   ` Sven Joachim
2009-05-07 11:51     ` Kenichi Handa
2009-05-07 18:32       ` Sven Joachim
2009-05-07 19:21         ` Stefan Monnier
2009-05-08  1:49         ` Kenichi Handa [this message]
2009-05-08  6:13           ` Sven Joachim
2009-05-18 12:42             ` Kenichi Handa
2012-08-16  6:58               ` Chong Yidong
2012-08-16 15:05                 ` Kenichi Handa
2012-08-17  9:10                   ` Chong Yidong
2015-01-20  4:46 ` Paul Eggert
2015-01-20 19:08   ` Glenn Morris
2015-01-20 20:24     ` Paul Eggert
2015-01-20 22:24       ` Glenn Morris
2015-01-21  6:07         ` Paul Eggert

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1M2FDi-0007Ol-Gm@etlken \
    --to=handa@m17n.org \
    --cc=3228@emacsbugs.donarmstrong.com \
    --cc=svenjoac@gmx.de \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).