unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
@ 2009-05-06  7:51 Sven Joachim
  2009-05-07  6:57 ` Kenichi Handa
  2015-01-20  4:46 ` Paul Eggert
  0 siblings, 2 replies; 17+ messages in thread
From: Sven Joachim @ 2009-05-06  7:51 UTC (permalink / raw)
  To: emacs-pretest-bug

I have set up the following X resources for Emacs:

Emacs.FontBackend: xft, x
Emacs.font:-adobe-courier-medium-r-normal--*-120-*-*-m-*-iso10646-1

This works okay, as can be seen with `C-u C-x =' :

,----
|         character: S (83, #o123, #x53)
| preferred charset: ascii (ASCII (ISO646 IRV))
|        code point: 0x53
|            syntax: w 	which means: word
|          category: .:Base, a:ASCII, l:Latin, r:Roman
|       buffer code: #x53
|         file code: #x53 (encoded by coding system utf-8-unix)
|           display: by this font (glyph code)
|     xft:-Adobe-Courier-normal-normal-normal-*-17-*-*-*-m-100-iso10646-1 (#x35)
`----

But choosing "Courier 12" from the GTK font selection dialog gives me
another font, and an extremely ugly one:

,----
|         character: S (83, #o123, #x53)
| preferred charset: ascii (ASCII (ISO646 IRV))
|        code point: 0x53
|            syntax: w 	which means: word
|          category: .:Base, a:ASCII, l:Latin, r:Roman
|       buffer code: #x53
|         file code: #x53 (encoded by coding system utf-8-unix)
|           display: by this font (glyph code)
|     x:-urw-nimbus mono l-regular-r-normal--17-123-100-100-p-100-iso8859-1 (#x53)
`---- ^^^^^^^^^^^^^

In GNU Emacs 23.0.93.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.1)
 of 2009-05-06 on turtle
Windowing system distributor `The X.Org Foundation', version 11.0.10601000
configured using `configure  'CFLAGS=-DGTK_DISABLE_DEPRECATED -g -O2''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-undo-mode: t
  display-time-mode: t
  auto-image-file-mode: t
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  temp-buffer-resize-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
<options> <menu-set-font> <up> <up> <right> <right> 
<right> C-u C-x = C-x o C-c r C-x o <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
<options> <menu-set-font> C-u C-x = C-x o C-c r C-x 
1 M-x g n u s <return> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <up> <up> <up> M-x r e 
p o <tab> r t - e m <tab> <return>

Recent messages:
Opening nnfolder server on archive...done
Reading active file from archive via nnfolder...done
Opening nnfolder server...done
No new newsgroups
Checking new news...
Opening nnfolder server on archive...done
Opening nntp server on news.gnus.org...done
Opening nntp server on news.motzarella.org...done
Checking new news...done
Making completion list...






^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  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
  2015-01-20  4:46 ` Paul Eggert
  1 sibling, 1 reply; 17+ messages in thread
From: Kenichi Handa @ 2009-05-07  6:57 UTC (permalink / raw)
  To: Sven Joachim, 3228

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

> I have set up the following X resources for Emacs:
> Emacs.FontBackend: xft, x
> Emacs.font:-adobe-courier-medium-r-normal--*-120-*-*-m-*-iso10646-1
[...]
> But choosing "Courier 12" from the GTK font selection dialog gives me
> another font, and an extremely ugly one:

> ,----
> |         character: S (83, #o123, #x53)
> | preferred charset: ascii (ASCII (ISO646 IRV))
> |        code point: 0x53
> |            syntax: w 	which means: word
> |          category: .:Base, a:ASCII, l:Latin, r:Roman
> |       buffer code: #x53
> |         file code: #x53 (encoded by coding system utf-8-unix)
> |           display: by this font (glyph code)
> |     x:-urw-nimbus mono l-regular-r-normal--17-123-100-100-p-100-iso8859-1 (#x53)
> `---- ^^^^^^^^^^^^^

I can't reproduce it.  Please show me the result of these
commands:

% fc-list courier file

And also try this:
% start Emacs as usual
ESC : (setq font-log nil) RET
;; choose 'courier 12' font from the GTK dialog
M-x font-show-log RET

and show me the *Help* buffer.

---
Kenichi Handa
handa@m17n.org






^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  2009-05-07  6:57 ` Kenichi Handa
@ 2009-05-07  7:19   ` Sven Joachim
  2009-05-07 11:51     ` Kenichi Handa
  0 siblings, 1 reply; 17+ messages in thread
From: Sven Joachim @ 2009-05-07  7:19 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: 3228

On 2009-05-07 08:57 +0200, Kenichi Handa wrote:

> In article <87eiv23bz6.fsf@turtle.gmx.de>, Sven Joachim <svenjoac@gmx.de> writes:
>
>> I have set up the following X resources for Emacs:
>> Emacs.FontBackend: xft, x
>> Emacs.font:-adobe-courier-medium-r-normal--*-120-*-*-m-*-iso10646-1
> [...]
>> But choosing "Courier 12" from the GTK font selection dialog gives me
>> another font, and an extremely ugly one:
>
>> ,----
>> |         character: S (83, #o123, #x53)
>> | preferred charset: ascii (ASCII (ISO646 IRV))
>> |        code point: 0x53
>> |            syntax: w 	which means: word
>> |          category: .:Base, a:ASCII, l:Latin, r:Roman
>> |       buffer code: #x53
>> |         file code: #x53 (encoded by coding system utf-8-unix)
>> |           display: by this font (glyph code)
>> |     x:-urw-nimbus mono l-regular-r-normal--17-123-100-100-p-100-iso8859-1 (#x53)
>> `---- ^^^^^^^^^^^^^
>
> I can't reproduce it.  Please show me the result of these
> commands:
>
> % fc-list courier file

/usr/share/fonts/X11/75dpi/courO12.pcf.gz: 
/usr/share/fonts/X11/100dpi/courB12.pcf.gz: 
/usr/share/fonts/X11/100dpi/courBO24.pcf.gz: 
/usr/share/fonts/X11/100dpi/courR24.pcf.gz: 
/usr/share/fonts/X11/100dpi/courO12.pcf.gz: 
/usr/share/fonts/X11/75dpi/courBO12.pcf.gz: 
/usr/share/fonts/X11/75dpi/courB14.pcf.gz: 
/usr/share/fonts/X11/100dpi/courBO14.pcf.gz: 
/usr/share/fonts/X11/100dpi/courR14.pcf.gz: 
/usr/share/fonts/X11/75dpi/courBO18-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courB24.pcf.gz: 
/usr/share/fonts/X11/100dpi/courO18-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courBO24-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courR12.pcf.gz: 
/usr/share/fonts/X11/100dpi/courO14-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courO08-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courO10-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courO14.pcf.gz: 
/usr/share/fonts/X11/75dpi/courBO12-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courO12-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courB14.pcf.gz: 
/usr/share/fonts/X11/75dpi/courBO14-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courBO08-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courBO10-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courR18-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courO14.pcf.gz: 
/usr/share/fonts/X11/75dpi/courR24.pcf.gz: 
/usr/share/fonts/X11/75dpi/courBO08.pcf.gz: 
/usr/share/fonts/X11/75dpi/courBO10.pcf.gz: 
/usr/share/fonts/X11/100dpi/courB18-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courBO12.pcf.gz: 
/usr/share/fonts/X11/100dpi/courO24.pcf.gz: 
/usr/share/fonts/X11/75dpi/courBO18.pcf.gz: 
/usr/share/fonts/X11/75dpi/courO24.pcf.gz: 
/usr/share/fonts/X11/100dpi/courR14-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courR08-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courR10-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courB14-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courB24.pcf.gz: 
/usr/share/fonts/X11/100dpi/courB08-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courB10-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courR12-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courR14.pcf.gz: 
/usr/share/fonts/X11/100dpi/courB12-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courBO24-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courO24-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courO08-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courO10-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courO14-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courR24-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courO24-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courR08-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courR10-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courR14-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courO12-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courR12-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courB18.pcf.gz: 
/usr/share/fonts/X11/75dpi/courB24-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courB08-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courB10-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courB14-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courB12-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courB08.pcf.gz: 
/usr/share/fonts/X11/75dpi/courB10.pcf.gz: 
/usr/share/fonts/X11/100dpi/courBO08.pcf.gz: 
/usr/share/fonts/X11/100dpi/courBO10.pcf.gz: 
/usr/share/fonts/X11/100dpi/courR08.pcf.gz: 
/usr/share/fonts/X11/100dpi/courR10.pcf.gz: 
/usr/share/fonts/X11/100dpi/courBO18.pcf.gz: 
/usr/share/fonts/X11/100dpi/courR18.pcf.gz: 
/usr/share/fonts/X11/100dpi/courBO12-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courO18-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courR24-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courR18-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courB24-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courBO14-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courBO08-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/100dpi/courBO10-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courB18-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courO08.pcf.gz: 
/usr/share/fonts/X11/75dpi/courO10.pcf.gz: 
/usr/share/fonts/X11/100dpi/courO18.pcf.gz: 
/usr/share/fonts/X11/75dpi/courBO24.pcf.gz: 
/usr/share/fonts/X11/75dpi/courO18.pcf.gz: 
/usr/share/fonts/X11/100dpi/courB08.pcf.gz: 
/usr/share/fonts/X11/100dpi/courB10.pcf.gz: 
/usr/share/fonts/X11/100dpi/courO08.pcf.gz: 
/usr/share/fonts/X11/100dpi/courO10.pcf.gz: 
/usr/share/fonts/X11/100dpi/courBO18-ISO8859-1.pcf.gz: 
/usr/share/fonts/X11/75dpi/courBO14.pcf.gz: 
/usr/share/fonts/X11/75dpi/courB12.pcf.gz: 
/usr/share/fonts/X11/100dpi/courB18.pcf.gz: 
/usr/share/fonts/X11/100dpi/courR12.pcf.gz: 
/usr/share/fonts/X11/75dpi/courR18.pcf.gz: 
/usr/share/fonts/X11/75dpi/courR08.pcf.gz: 
/usr/share/fonts/X11/75dpi/courR10.pcf.gz: 

> And also try this:
> % start Emacs as usual
> ESC : (setq font-log nil) RET
> ;; choose 'courier 12' font from the GTK dialog
> M-x font-show-log RET
>
> and show me the *Help* buffer.

ftfont-list: -adobe-courier-*--*-m-*-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-11-*-m-60-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-12-*-m-70-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-18-*-m-110-iso10646-1
  -Adobe-Courier-bold-oblique-normal-*-11-*-m-60-iso10646-1
  -Adobe-Courier-bold-oblique-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-11-*-m-60-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-34-*-m-200-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-11-*-m-60-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-20-*-m-110-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-20-*-m-110-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-18-*-m-110-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-17-*-m-100-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-8-*-m-50-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-10-*-m-60-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-24-*-m-150-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-10-*-m-60-iso10646-1
  ...
xfont-list: -adobe-courier-*-*-*--*-*-*-*-m-*-iso10646-1
  -adobe-courier-medium-r-normal--8-*-75-75-m-50-iso10646-1
  -adobe-courier-medium-r-normal--34-*-100-100-m-200-iso10646-1
  -adobe-courier-medium-r-normal--25-*-100-100-m-150-iso10646-1
  -adobe-courier-medium-r-normal--24-*-75-75-m-150-iso10646-1
  -adobe-courier-medium-r-normal--20-*-100-100-m-110-iso10646-1
  -adobe-courier-medium-r-normal--18-*-75-75-m-110-iso10646-1
  -adobe-courier-medium-r-normal--17-*-100-100-m-100-iso10646-1
  -adobe-courier-medium-r-normal--14-*-75-75-m-90-iso10646-1
  -adobe-courier-medium-r-normal--14-*-100-100-m-90-iso10646-1
  -adobe-courier-medium-r-normal--12-*-75-75-m-70-iso10646-1
  -adobe-courier-medium-r-normal--11-*-100-100-m-60-iso10646-1
  -adobe-courier-medium-r-normal--10-*-75-75-m-60-iso10646-1
  -adobe-courier-medium-o-normal--8-*-75-75-m-50-iso10646-1
  -adobe-courier-medium-o-normal--34-*-100-100-m-200-iso10646-1
  -adobe-courier-medium-o-normal--25-*-100-100-m-150-iso10646-1
  -adobe-courier-medium-o-normal--24-*-75-75-m-150-iso10646-1
  -adobe-courier-medium-o-normal--20-*-100-100-m-110-iso10646-1
  -adobe-courier-medium-o-normal--18-*-75-75-m-110-iso10646-1
  -adobe-courier-medium-o-normal--17-*-100-100-m-100-iso10646-1
  ...
list: -adobe-courier-medium-r-normal--*-m-*-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-11-*-m-60-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-11-*-m-60-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-20-*-m-110-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-17-*-m-100-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-10-*-m-60-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-8-*-m-50-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-18-*-m-110-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-34-*-m-200-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-34-*-m-200-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-20-*-m-110-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-24-*-m-150-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-24-*-m-150-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-8-*-m-50-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-10-*-m-60-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-17-*-m-100-iso10646-1
  ...
sort-by: -*-normal-normal-normal-*-17-*
  xft:-Adobe-Courier-normal-normal-normal-*-17-*-m-100-iso10646-1
open: -Adobe-Courier-normal-normal-normal-*-17-*-m-100-iso10646-1
  xft:-Adobe-Courier-normal-normal-normal-*-17-*-m-100-iso10646-1
list: -Adobe-courier-normal-*-normal-*-m-100-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-17-*-m-100-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-17-*-m-100-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-17-*-m-100-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-17-*-m-100-iso10646-1
  -adobe-courier-medium-r-normal--17-*-100-100-m-100-iso10646-1
  -adobe-courier-medium-o-normal--17-*-100-100-m-100-iso10646-1
sort-by: -*-normal-italic-normal-*-17-*
  xft:-Adobe-Courier-normal-oblique-normal-*-17-*-m-100-iso10646-1
ftfont-list: -Adobe-Sans Serif-*-iso8859-1
xfont-list: -Adobe-Sans Serif-*-*-*-*-*-*-*-*-*-*-iso8859-1
list: -Adobe-Sans Serif-normal-normal-*-iso8859-1
ftfont-list: -Adobe-Sans Serif-*-ascii-0
xfont-list: -Adobe-Sans Serif-*-*-*-*-*-*-*-*-*-*-ascii-0
list: -Adobe-Sans Serif-normal-normal-*-ascii-0
ftfont-list: -*-Sans Serif-*-iso8859-1
  -bitstream-Bitstream Vera Sans-bold-normal-normal-*-0-iso10646-1
  -bitstream-Bitstream Vera Sans-bold-oblique-normal-*-0-iso10646-1
  -bitstream-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1
  -bitstream-Bitstream Vera Sans-normal-oblique-normal-*-0-iso10646-1
xfont-list: -*-Sans Serif-*-*-*-*-*-*-*-*-*-*-iso8859-1
list: -*-Sans Serif-normal-normal-*-iso8859-1
  -bitstream-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1
open: -bitstream-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1
  xft:-bitstream-Bitstream Vera Sans-normal-normal-normal-*-17-*-0-iso10646-1
ftfont-list: -Adobe-courier-*-iso8859-1
  -Adobe-Courier-normal-normal-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-11-*-m-60-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-12-*-m-70-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-18-*-m-110-iso10646-1
  -Adobe-Courier-bold-oblique-normal-*-11-*-m-60-iso10646-1
  -Adobe-Courier-bold-oblique-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-11-*-m-60-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-34-*-m-200-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-11-*-m-60-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-20-*-m-110-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-20-*-m-110-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-18-*-m-110-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-17-*-m-100-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-8-*-m-50-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-10-*-m-60-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-24-*-m-150-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-10-*-m-60-iso10646-1
  ...
xfont-list: -Adobe-courier-*-*-*-*-*-*-*-*-*-*-iso8859-1
  -adobe-courier-medium-r-normal--8-*-75-75-m-50-iso8859-1
  -adobe-courier-medium-r-normal--34-*-100-100-m-200-iso8859-1
  -adobe-courier-medium-r-normal--25-*-100-100-m-150-iso8859-1
  -adobe-courier-medium-r-normal--24-*-75-75-m-150-iso8859-1
  -adobe-courier-medium-r-normal--20-*-100-100-m-110-iso8859-1
  -adobe-courier-medium-r-normal--18-*-75-75-m-110-iso8859-1
  -adobe-courier-medium-r-normal--17-*-100-100-m-100-iso8859-1
  -adobe-courier-medium-r-normal--14-*-75-75-m-90-iso8859-1
  -adobe-courier-medium-r-normal--14-*-100-100-m-90-iso8859-1
  -adobe-courier-medium-r-normal--12-*-75-75-m-70-iso8859-1
  -adobe-courier-medium-r-normal--11-*-100-100-m-60-iso8859-1
  -adobe-courier-medium-r-normal--10-*-75-75-m-60-iso8859-1
  -adobe-courier-medium-r-normal--*-0-0-p-0-iso8859-1
  -adobe-courier-medium-o-normal--8-*-75-75-m-50-iso8859-1
  -adobe-courier-medium-o-normal--34-*-100-100-m-200-iso8859-1
  -adobe-courier-medium-o-normal--25-*-100-100-m-150-iso8859-1
  -adobe-courier-medium-o-normal--24-*-75-75-m-150-iso8859-1
  -adobe-courier-medium-o-normal--20-*-100-100-m-110-iso8859-1
  -adobe-courier-medium-o-normal--18-*-75-75-m-110-iso8859-1
  ...
list: -Adobe-courier-*-iso8859-1
  -Adobe-Courier-normal-normal-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-11-*-m-60-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-12-*-m-70-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-18-*-m-110-iso10646-1
  -Adobe-Courier-bold-oblique-normal-*-11-*-m-60-iso10646-1
  -Adobe-Courier-bold-oblique-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-11-*-m-60-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-34-*-m-200-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-11-*-m-60-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-14-*-m-90-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-20-*-m-110-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-20-*-m-110-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-18-*-m-110-iso10646-1
  -Adobe-Courier-normal-normal-normal-*-17-*-m-100-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-8-*-m-50-iso10646-1
  -Adobe-Courier-bold-normal-normal-*-10-*-m-60-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-24-*-m-150-iso10646-1
  -Adobe-Courier-normal-oblique-normal-*-10-*-m-60-iso10646-1
  ...
sort-by: -*-normal-normal-normal-*-17-*
  x:-adobe-courier-medium-r-normal--*-0-0-p-0-iso8859-1
open: -adobe-courier-medium-r-normal--*-0-0-p-0-iso8859-1
  x:-urw-nimbus mono l-regular-r-normal--17-123-100-100-p-100-iso8859-1
ftfont-list: -urw-nimbus mono l-*--*-p-*-iso8859-1
  -urw-Nimbus Mono L-bold-oblique-normal-*-0-iso10646-1
  -urw-Nimbus Mono L-bold-oblique-normal-*-0-iso10646-1
xfont-list: -urw-nimbus mono l-*-*-*--*-*-*-*-p-*-iso8859-1
  -urw-nimbus mono l-regular-r-normal--*-0-0-p-0-iso8859-1
  -urw-nimbus mono l-regular-o-normal--*-0-0-p-0-iso8859-1
  -urw-nimbus mono l-bold-r-normal--*-0-0-p-0-iso8859-1
  -urw-nimbus mono l-bold-o-normal--*-0-0-p-0-iso8859-1
list: -urw-nimbus mono l-*-r-normal--*-100-100-p-100-iso8859-1
  -urw-nimbus mono l-regular-r-normal--*-0-0-p-0-iso8859-1
  -urw-nimbus mono l-bold-r-normal--*-0-0-p-0-iso8859-1
sort-by: -*-light-r-normal-*-17-*
  x:-urw-nimbus mono l-regular-r-normal--*-0-0-p-0-iso8859-1
open: -urw-nimbus mono l-regular-r-normal--*-0-0-p-0-iso8859-1
  x:-urw-nimbus mono l-regular-r-normal--17-123-100-100-p-100-iso8859-1
list: -urw-nimbus mono l-*-r-normal--*-100-100-p-100-iso8859-1
  -urw-nimbus mono l-regular-r-normal--*-0-0-p-0-iso8859-1
  -urw-nimbus mono l-bold-r-normal--*-0-0-p-0-iso8859-1
sort-by: -*-light-r-normal-*-17-*
  x:-urw-nimbus mono l-regular-r-normal--*-0-0-p-0-iso8859-1
list: -urw-nimbus mono l-*-r-normal--*-100-100-p-100-iso8859-1
  -urw-nimbus mono l-regular-r-normal--*-0-0-p-0-iso8859-1
  -urw-nimbus mono l-bold-r-normal--*-0-0-p-0-iso8859-1
sort-by: -*-bold-r-normal-*-17-*
  x:-urw-nimbus mono l-bold-r-normal--*-0-0-p-0-iso8859-1
open: -urw-nimbus mono l-bold-r-normal--*-0-0-p-0-iso8859-1
  x:-urw-nimbus mono l-bold-r-normal--17-123-100-100-p-100-iso8859-1


HTH,
    Sven






^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  2009-05-07  7:19   ` Sven Joachim
@ 2009-05-07 11:51     ` Kenichi Handa
  2009-05-07 18:32       ` Sven Joachim
  0 siblings, 1 reply; 17+ messages in thread
From: Kenichi Handa @ 2009-05-07 11:51 UTC (permalink / raw)
  To: Sven Joachim; +Cc: 3228

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

> > And also try this:
> > % start Emacs as usual
> > ESC : (setq font-log nil) RET
> > ;; choose 'courier 12' font from the GTK dialog
> > M-x font-show-log RET
> >
> > and show me the *Help* buffer.

> ftfont-list: -adobe-courier-*--*-m-*-iso10646-1
[...]

It's strange that the first font listing is for that
pattern.  The first one should be:

ftfont-list: -Adobe-courier-*-iso8859-1

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

And please show me the result of this too:

% xlsfonts -fn '-adobe-courier-medium-r-normal-*'

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)

---
Kenichi Handa
handa@m17n.org






^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  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
  0 siblings, 2 replies; 17+ messages in thread
From: Sven Joachim @ 2009-05-07 18:32 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: 3228

On 2009-05-07 13:51 +0200, Kenichi Handa wrote:

> In article <87prelidmt.fsf@turtle.gmx.de>, Sven Joachim <svenjoac@gmx.de> writes:
>
>> ftfont-list: -adobe-courier-*--*-m-*-iso10646-1
> [...]
>
> It's strange that the first font listing is for that
> pattern.  The first one should be:
>
> ftfont-list: -Adobe-courier-*-iso8859-1
>
> 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?

> And please show me the result of this too:
>
> % xlsfonts -fn '-adobe-courier-medium-r-normal-*'

-adobe-courier-medium-r-normal--0-0-0-0-p-0-iso8859-1
-adobe-courier-medium-r-normal--0-0-0-0-p-0-iso8859-15
-adobe-courier-medium-r-normal--0-0-0-0-p-0-iso8859-2
-adobe-courier-medium-r-normal--0-0-100-100-m-0-iso10646-1
-adobe-courier-medium-r-normal--0-0-100-100-m-0-iso8859-1
-adobe-courier-medium-r-normal--0-0-75-75-m-0-iso10646-1
-adobe-courier-medium-r-normal--0-0-75-75-m-0-iso8859-1
-adobe-courier-medium-r-normal--10-100-75-75-m-60-iso10646-1
-adobe-courier-medium-r-normal--10-100-75-75-m-60-iso10646-1
-adobe-courier-medium-r-normal--10-100-75-75-m-60-iso8859-1
-adobe-courier-medium-r-normal--10-100-75-75-m-60-iso8859-1
-adobe-courier-medium-r-normal--11-80-100-100-m-60-iso10646-1
-adobe-courier-medium-r-normal--11-80-100-100-m-60-iso10646-1
-adobe-courier-medium-r-normal--11-80-100-100-m-60-iso8859-1
-adobe-courier-medium-r-normal--11-80-100-100-m-60-iso8859-1
-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso10646-1
-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso10646-1
-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1
-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1
-adobe-courier-medium-r-normal--14-100-100-100-m-90-iso10646-1
-adobe-courier-medium-r-normal--14-100-100-100-m-90-iso10646-1
-adobe-courier-medium-r-normal--14-100-100-100-m-90-iso8859-1
-adobe-courier-medium-r-normal--14-100-100-100-m-90-iso8859-1
-adobe-courier-medium-r-normal--14-140-75-75-m-90-iso10646-1
-adobe-courier-medium-r-normal--14-140-75-75-m-90-iso10646-1
-adobe-courier-medium-r-normal--14-140-75-75-m-90-iso8859-1
-adobe-courier-medium-r-normal--14-140-75-75-m-90-iso8859-1
-adobe-courier-medium-r-normal--17-120-100-100-m-100-iso10646-1
-adobe-courier-medium-r-normal--17-120-100-100-m-100-iso10646-1
-adobe-courier-medium-r-normal--17-120-100-100-m-100-iso8859-1
-adobe-courier-medium-r-normal--17-120-100-100-m-100-iso8859-1
-adobe-courier-medium-r-normal--18-180-75-75-m-110-iso10646-1
-adobe-courier-medium-r-normal--18-180-75-75-m-110-iso10646-1
-adobe-courier-medium-r-normal--18-180-75-75-m-110-iso8859-1
-adobe-courier-medium-r-normal--18-180-75-75-m-110-iso8859-1
-adobe-courier-medium-r-normal--20-140-100-100-m-110-iso10646-1
-adobe-courier-medium-r-normal--20-140-100-100-m-110-iso10646-1
-adobe-courier-medium-r-normal--20-140-100-100-m-110-iso8859-1
-adobe-courier-medium-r-normal--20-140-100-100-m-110-iso8859-1
-adobe-courier-medium-r-normal--24-240-75-75-m-150-iso10646-1
-adobe-courier-medium-r-normal--24-240-75-75-m-150-iso10646-1
-adobe-courier-medium-r-normal--24-240-75-75-m-150-iso8859-1
-adobe-courier-medium-r-normal--24-240-75-75-m-150-iso8859-1
-adobe-courier-medium-r-normal--25-180-100-100-m-150-iso10646-1
-adobe-courier-medium-r-normal--25-180-100-100-m-150-iso10646-1
-adobe-courier-medium-r-normal--25-180-100-100-m-150-iso8859-1
-adobe-courier-medium-r-normal--25-180-100-100-m-150-iso8859-1
-adobe-courier-medium-r-normal--34-240-100-100-m-200-iso10646-1
-adobe-courier-medium-r-normal--34-240-100-100-m-200-iso10646-1
-adobe-courier-medium-r-normal--34-240-100-100-m-200-iso8859-1
-adobe-courier-medium-r-normal--34-240-100-100-m-200-iso8859-1
-adobe-courier-medium-r-normal--8-80-75-75-m-50-iso10646-1
-adobe-courier-medium-r-normal--8-80-75-75-m-50-iso10646-1
-adobe-courier-medium-r-normal--8-80-75-75-m-50-iso8859-1
-adobe-courier-medium-r-normal--8-80-75-75-m-50-iso8859-1

> 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"
-adobe-courier-medium-r-normal--0-0-0-0-p-0-iso8859-2 "-urw-nimbus mono l-regular-r-normal--0-0-0-0-p-0-iso8859-2"
-adobe-courier-medium-r-normal--0-0-0-0-p-0-iso8859-15 "-urw-nimbus mono l-regular-r-normal--0-0-0-0-p-0-iso8859-15"
-adobe-courier-medium-o-normal--0-0-0-0-p-0-iso8859-1 "-urw-nimbus mono l-regular-o-normal--0-0-0-0-p-0-iso8859-1"
-adobe-courier-medium-o-normal--0-0-0-0-p-0-iso8859-2 "-urw-nimbus mono l-regular-o-normal--0-0-0-0-p-0-iso8859-2"
-adobe-courier-medium-o-normal--0-0-0-0-p-0-iso8859-15 "-urw-nimbus mono l-regular-o-normal--0-0-0-0-p-0-iso8859-15"
-adobe-courier-bold-r-normal--0-0-0-0-p-0-iso8859-1 "-urw-nimbus mono l-bold-r-normal--0-0-0-0-p-0-iso8859-1"
-adobe-courier-bold-r-normal--0-0-0-0-p-0-iso8859-2 "-urw-nimbus mono l-bold-r-normal--0-0-0-0-p-0-iso8859-2"
-adobe-courier-bold-r-normal--0-0-0-0-p-0-iso8859-15 "-urw-nimbus mono l-bold-r-normal--0-0-0-0-p-0-iso8859-15"
-adobe-courier-bold-o-normal--0-0-0-0-p-0-iso8859-1 "-urw-nimbus mono l-bold-o-normal--0-0-0-0-p-0-iso8859-1"
-adobe-courier-bold-o-normal--0-0-0-0-p-0-iso8859-2 "-urw-nimbus mono l-bold-o-normal--0-0-0-0-p-0-iso8859-2"
-adobe-courier-bold-o-normal--0-0-0-0-p-0-iso8859-15 "-urw-nimbus mono l-bold-o-normal--0-0-0-0-p-0-iso8859-15"
-adobe-courier-medium-i-normal--0-0-0-0-p-0-iso8859-1 "-urw-nimbus mono l-regular-o-normal--0-0-0-0-p-0-iso8859-1"
-adobe-courier-medium-i-normal--0-0-0-0-p-0-iso8859-2 "-urw-nimbus mono l-regular-o-normal--0-0-0-0-p-0-iso8859-2"
-adobe-courier-medium-i-normal--0-0-0-0-p-0-iso8859-15 "-urw-nimbus mono l-regular-o-normal--0-0-0-0-p-0-iso8859-15"
-adobe-courier-bold-i-normal--0-0-0-0-p-0-iso8859-1 "-urw-nimbus mono l-bold-o-normal--0-0-0-0-p-0-iso8859-1"
-adobe-courier-bold-i-normal--0-0-0-0-p-0-iso8859-2 "-urw-nimbus mono l-bold-o-normal--0-0-0-0-p-0-iso8859-2"
-adobe-courier-bold-i-normal--0-0-0-0-p-0-iso8859-15 "-urw-nimbus mono l-bold-o-normal--0-0-0-0-p-0-iso8859-15"

My font path according to "xset q" is

/usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,built-ins

Sven






^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  2009-05-07 18:32       ` Sven Joachim
@ 2009-05-07 19:21         ` Stefan Monnier
  2009-05-08  1:49         ` Kenichi Handa
  1 sibling, 0 replies; 17+ messages in thread
From: Stefan Monnier @ 2009-05-07 19:21 UTC (permalink / raw)
  To: Sven Joachim; +Cc: 3228

>>> ftfont-list: -adobe-courier-*--*-m-*-iso10646-1
>> [...]
>> 
>> It's strange that the first font listing is for that
>> pattern.  The first one should be:
>> 
>> ftfont-list: -Adobe-courier-*-iso8859-1
>> 
>> 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?

It's usually better to leave it unspecified:

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

but Emacs should (hopefully) be able to handle your case as well.


        Stefan






^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  2009-05-07 18:32       ` Sven Joachim
  2009-05-07 19:21         ` Stefan Monnier
@ 2009-05-08  1:49         ` Kenichi Handa
  2009-05-08  6:13           ` Sven Joachim
  1 sibling, 1 reply; 17+ messages in thread
From: Kenichi Handa @ 2009-05-08  1:49 UTC (permalink / raw)
  To: Sven Joachim; +Cc: 3228

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






^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  2009-05-08  1:49         ` Kenichi Handa
@ 2009-05-08  6:13           ` Sven Joachim
  2009-05-18 12:42             ` Kenichi Handa
  0 siblings, 1 reply; 17+ messages in thread
From: Sven Joachim @ 2009-05-08  6:13 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: 3228

On 2009-05-08 03:49 +0200, Kenichi Handa wrote:

> In article <87bpq4932u.fsf@turtle.gmx.de>, Sven Joachim <svenjoac@gmx.de> writes:
>
>> 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.

Indeed.

> 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

That font is selected then, yes.

Sven






^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  2009-05-08  6:13           ` Sven Joachim
@ 2009-05-18 12:42             ` Kenichi Handa
  2012-08-16  6:58               ` Chong Yidong
  0 siblings, 1 reply; 17+ messages in thread
From: Kenichi Handa @ 2009-05-18 12:42 UTC (permalink / raw)
  To: Sven Joachim; +Cc: 3228

Sorry for the late response.

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

> On 2009-05-08 03:49 +0200, Kenichi Handa wrote:
> > In article <87bpq4932u.fsf@turtle.gmx.de>, Sven Joachim <svenjoac@gmx.de> writes:
> >
>>> 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.

> Indeed.

> > 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

> That font is selected then, yes.

I've just installed a fix to handle :type property of font
correctly in set-face-attribute.

So, this problem can be solved by modifying x-select-font
(called from menu-set-font) to return a font-spec (with a
proper font-backend name in :type) instead of font-name.

But, x-select-font is called from mouse-appearance-menu (in
mouse.el) too, and it does something like this:

(buffer-face-mode-invoke (font-face-attributes (x-select-font)) ...)

and thus the :type information is lost by
font-face-attributes.  I don't know why we need
font-face-attributes here.

By the way, if a user is using `x' font-backend only, we
should not use x-select-font (of xfns.c) because the
selected font is usually not usable.

---
Kenichi Handa
handa@m17n.org






^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  2009-05-18 12:42             ` Kenichi Handa
@ 2012-08-16  6:58               ` Chong Yidong
  2012-08-16 15:05                 ` Kenichi Handa
  0 siblings, 1 reply; 17+ messages in thread
From: Chong Yidong @ 2012-08-16  6:58 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: Sven Joachim, 3228

Kenichi Handa <handa@m17n.org> writes:

> So, this problem can be solved by modifying x-select-font
> (called from menu-set-font) to return a font-spec (with a
> proper font-backend name in :type) instead of font-name.

I've now done this in the trunk for the GTK 3 case.  It's not
straightforward to do this for GTK 2, so I will not attempt that.





^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  2012-08-16  6:58               ` Chong Yidong
@ 2012-08-16 15:05                 ` Kenichi Handa
  2012-08-17  9:10                   ` Chong Yidong
  0 siblings, 1 reply; 17+ messages in thread
From: Kenichi Handa @ 2012-08-16 15:05 UTC (permalink / raw)
  To: Chong Yidong; +Cc: svenjoac, 3228

In article <87lihfiaqp.fsf@gnu.org>, Chong Yidong <cyd@gnu.org> writes:

> Kenichi Handa <handa@m17n.org> writes:
> > So, this problem can be solved by modifying x-select-font
> > (called from menu-set-font) to return a font-spec (with a
> > proper font-backend name in :type) instead of font-name.

> I've now done this in the trunk for the GTK 3 case.  It's not
> straightforward to do this for GTK 2, so I will not attempt that.

Thank you.  I also wrote:

> > But, x-select-font is called from mouse-appearance-menu (in
> > mouse.el) too, and it does something like this:
 
> > (buffer-face-mode-invoke (font-face-attributes (x-select-font)) ...)

> > and thus the :type information is lost by
> > font-face-attributes.  I don't know why we need
> > font-face-attributes here.

How did you solve it?  Or, is it not a problem?

---
Kenichi Handa
handa@gnu.org





^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  2012-08-16 15:05                 ` Kenichi Handa
@ 2012-08-17  9:10                   ` Chong Yidong
  0 siblings, 0 replies; 17+ messages in thread
From: Chong Yidong @ 2012-08-17  9:10 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: svenjoac, 3228

Kenichi Handa <handa@gnu.org> writes:

>> > But, x-select-font is called from mouse-appearance-menu (in
>> > mouse.el) too, and it does something like this:
>  
>> > (buffer-face-mode-invoke (font-face-attributes (x-select-font)) ...)
>
>> > and thus the :type information is lost by
>> > font-face-attributes.  I don't know why we need
>> > font-face-attributes here.
>
> How did you solve it?  Or, is it not a problem?

Sorry, I missed that.  I just committed a fix.  If x-select-font returns
a font spec, mouse-appearance-menu now calls

   (buffer-face-mode-invoke (list :font font) ...)

This required fixing xfaces.c to allow face-remapping using :font, which
was previously broken.





^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  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
@ 2015-01-20  4:46 ` Paul Eggert
  2015-01-20 19:08   ` Glenn Morris
  1 sibling, 1 reply; 17+ messages in thread
From: Paul Eggert @ 2015-01-20  4:46 UTC (permalink / raw)
  To: 3228

[-- Attachment #1: Type: text/plain, Size: 169 bytes --]

There was a typo in Chong Yidong's fix (installed 2012-08-17) and I installed 
the attached patch to fix it, as master commit 
ef5a526f1b51b76b0f753e0936c80743a7f4463d.

[-- Attachment #2: 0001-Correct-an-old-fix-for-GTK-font-selection.patch --]
[-- Type: text/x-patch, Size: 1189 bytes --]

From c80ef1c052314b4ba7386e612bc1bb02550d383d Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Mon, 19 Jan 2015 20:42:40 -0800
Subject: [PATCH] Correct an old fix for GTK font selection

* gtkutil.c (xg_get_font): Fix off-by-2 typo.
Fixes: bug#3228
---
 src/ChangeLog | 4 ++++
 src/gtkutil.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index ad7780f..b8528c2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
 2015-01-20  Paul Eggert  <eggert@cs.ucla.edu>
 
+	Correct an old fix for GTK font selection
+	* gtkutil.c (xg_get_font): Fix off-by-2 typo.
+	Fixes: bug#3228
+
 	Fix minor bugs with printing null bytes
 	* minibuf.c (read_minibuf_noninteractive):
 	* xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]:
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 694278a..da05742 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -2093,7 +2093,7 @@ xg_get_font (struct frame *f, const char *default_name)
 	  args[8] = QCtype;
 	  args[9] = Qxft;
 
-	  font = Ffont_spec (8, args);
+	  font = Ffont_spec (10, args);
 
 	  pango_font_description_free (desc);
 	  dupstring (&x_last_font_name, name);
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  2015-01-20  4:46 ` Paul Eggert
@ 2015-01-20 19:08   ` Glenn Morris
  2015-01-20 20:24     ` Paul Eggert
  0 siblings, 1 reply; 17+ messages in thread
From: Glenn Morris @ 2015-01-20 19:08 UTC (permalink / raw)
  To: Paul Eggert; +Cc: 3228

Paul Eggert wrote:

> installed the attached patch to fix it, as master commit
> ef5a526f1b51b76b0f753e0936c80743a7f4463d.

Why not in emacs-24?





^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  2015-01-20 19:08   ` Glenn Morris
@ 2015-01-20 20:24     ` Paul Eggert
  2015-01-20 22:24       ` Glenn Morris
  0 siblings, 1 reply; 17+ messages in thread
From: Paul Eggert @ 2015-01-20 20:24 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 3228

On 01/20/2015 11:08 AM, Glenn Morris wrote:
> Why not in emacs-24?

It's an old bug that hasn't been fixed for years, and I thought emacs-24 
was only for fixing regressions.  Was I wrong?  If so, I can backport it.





^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  2015-01-20 20:24     ` Paul Eggert
@ 2015-01-20 22:24       ` Glenn Morris
  2015-01-21  6:07         ` Paul Eggert
  0 siblings, 1 reply; 17+ messages in thread
From: Glenn Morris @ 2015-01-20 22:24 UTC (permalink / raw)
  To: Paul Eggert; +Cc: 3228

Paul Eggert wrote:

> On 01/20/2015 11:08 AM, Glenn Morris wrote:
>> Why not in emacs-24?
>
> It's an old bug that hasn't been fixed for years, and I thought
> emacs-24 was only for fixing regressions.  Was I wrong?  If so, I can
> backport it.

emacs-24 is (IMO) for safe bug fixes, and surely this is a safe bug fix.





^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
  2015-01-20 22:24       ` Glenn Morris
@ 2015-01-21  6:07         ` Paul Eggert
  0 siblings, 0 replies; 17+ messages in thread
From: Paul Eggert @ 2015-01-21  6:07 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 3228

Glenn Morris wrote:
> emacs-24 is (IMO) for safe bug fixes, and surely this is a safe bug fix.

OK, I backported it to emacs-24 as commit 4c09e3aef9a366ffebd314d01f666e04bd7798e2.





^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2015-01-21  6:07 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).