all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dima Kogan <dima@secretsauce.net>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: 19117@debbugs.gnu.org
Subject: bug#19117: 25.0.50; emacs on x11 chooses different fonts for the same face sometimes
Date: Fri, 19 Dec 2014 14:46:31 -0800	[thread overview]
Message-ID: <878ui3jkx0.fsf@secretsauce.net> (raw)
In-Reply-To: <54944426.6090900@yandex.ru>

Dmitry Antipov <dmantipov@yandex.ru> writes:

> Hm. On my system (Fedora 21), there are no -adobe-courier-medium-i-normal-*
> fonts but:
>
> $ xlsfonts | grep -- -adobe-utopia-bold-i-normal-
> -adobe-utopia-bold-i-normal--0-0-0-0-p-0-iso10646-1
> -adobe-utopia-bold-i-normal--0-0-0-0-p-0-iso10646-1
> -adobe-utopia-bold-i-normal--0-0-0-0-p-0-iso8859-1
> -adobe-utopia-bold-i-normal--0-0-0-0-p-0-iso8859-1
> -adobe-utopia-bold-i-normal--10-100-75-75-p-58-iso10646-1
> -adobe-utopia-bold-i-normal--12-120-75-75-p-70-iso10646-1
> -adobe-utopia-bold-i-normal--14-100-100-100-p-78-iso10646-1
> -adobe-utopia-bold-i-normal--14-100-100-100-p-78-iso8859-1
> -adobe-utopia-bold-i-normal--15-140-75-75-p-82-iso10646-1
> -adobe-utopia-bold-i-normal--17-120-100-100-p-93-iso10646-1
> -adobe-utopia-bold-i-normal--17-120-100-100-p-93-iso8859-1
> -adobe-utopia-bold-i-normal--19-140-100-100-p-109-iso10646-1
> -adobe-utopia-bold-i-normal--19-140-100-100-p-109-iso8859-1
> -adobe-utopia-bold-i-normal--19-180-75-75-p-105-iso10646-1
> -adobe-utopia-bold-i-normal--25-180-100-100-p-139-iso10646-1
> -adobe-utopia-bold-i-normal--25-180-100-100-p-139-iso8859-1
> -adobe-utopia-bold-i-normal--25-240-75-75-p-140-iso10646-1
> -adobe-utopia-bold-i-normal--33-240-100-100-p-186-iso10646-1
> -adobe-utopia-bold-i-normal--33-240-100-100-p-186-iso8859-1
>
> And running your program with -adobe-utopia-bold-i-normal--0-0-0-0-p-0-iso8859-1
> produces:
>
> font '-adobe-utopia-bold-i-normal--0-0-0-0-p-0-iso8859-1' loaded as '-adobe-utopia-bold-i-normal--17-120-100-100-p-94-iso8859-1'
>
> Your X behaves pretty strange; I can't explain this just now.
>
> Also, what happens if you specify default font via ~/.Xdefaults
> and run with emacs -q (small 'q', not 'Q')?

Hi. Thank you for looking.

First off, setting the font in the .Xresources has the same effect as
doing it with the lisp snippet on the commandline.

My font configuration is stock from Debian; I didn't mess with it. The
adobe->urw conversion probably comes from
/usr/share/fonts/X11/Type1/fonts.alias which on my machine contains many
lines such as

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

That file contains only aliases from scalable fonts to other scalable
fonts, but it's probably the cause in any case.

I do suspect that the adobe->urw conversion is not important here. What
IS important is that we ask Emacs for a particular size 11 font, it
gives back a size 0 (scalable) font, and when you ask X for that size 0
font, you get back a size 17 font. You are seeing this too, apparently.
You asked X for a scalable font

 -adobe-utopia-bold-i-normal--0-0-0-0-p-0-iso8859-1

and X gave you a size-17 font

 -adobe-utopia-bold-i-normal--17-120-100-100-p-94-iso8859-1

So in your case, if you ask Emacs for a size-11 -adobe-utopia-... font
then does Emacs pick a scalable font for you? If so, I would expect
things to not look very good, since you'll get a 17->11 scaling.

The questions for Emacs are:

- Should the candidate font list stay consistent as Emacs runs?
- Should the candidate font list contain any scalable fonts?

The answer to the 1st question is probably "yes". Do you know the answer
to the 2nd? I can keep probing if you tell me which observed behavior is
wrong.

My suspicion is that there's some race condition here that is tickled by
my window manager. I'm using notion, which is a niche WM, so this
wouldn't be widely reported. But even so, it has been working fine for
many years, only regressing 6 months ago or so.

Thanks again





  reply	other threads:[~2014-12-19 22:46 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-20  6:13 bug#19117: 25.0.50; emacs on x11 chooses different fonts for the same face sometimes Dima Kogan
2014-11-20 16:10 ` Eli Zaretskii
2014-12-07  7:28   ` Dima Kogan
2014-12-07 16:12     ` Eli Zaretskii
2014-12-17  5:36       ` Dima Kogan
2014-12-17  6:57         ` Dima Kogan
2014-12-18 16:24           ` Eli Zaretskii
2014-12-20  8:08             ` Jan Djärv
2014-12-19 15:28           ` Dmitry Antipov
2014-12-19 22:46             ` Dima Kogan [this message]
2014-12-22  8:01               ` Dmitry Antipov
2014-12-22  8:28               ` Jan Djärv
2014-12-26 19:43                 ` Dima Kogan
2014-12-27  2:17                   ` Stefan Monnier
2014-12-27  9:17                     ` Dima Kogan
2014-12-30  9:44                     ` Dima Kogan
2014-12-30 16:57                       ` Stefan Monnier
2014-12-30 18:33                         ` Dima Kogan
2014-12-30 20:05                           ` Eli Zaretskii
2014-12-31  4:06                             ` Dima Kogan
2015-01-02  9:43                               ` Eli Zaretskii
2015-01-02 21:07                                 ` Dima Kogan
2015-02-02  8:10                                   ` Dima Kogan
2015-02-03 17:53                                     ` Stefan Monnier
2015-02-05  2:41                                       ` handa
2015-02-15 13:47                                         ` K. Handa
2015-02-05 15:08                                       ` Jan D.
2015-02-05 20:41                                         ` Dima Kogan
2015-02-07  7:24                                           ` Jan D.
2015-02-07  7:59                                           ` Jan D.
2015-02-07  8:28                                             ` Dima Kogan
2015-02-09 14:58                                               ` Jan D.

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=878ui3jkx0.fsf@secretsauce.net \
    --to=dima@secretsauce.net \
    --cc=19117@debbugs.gnu.org \
    --cc=dmantipov@yandex.ru \
    /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.