From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs 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 Message-ID: <878ui3jkx0.fsf@secretsauce.net> References: <878uj674zh.fsf@secretsauce.net> <831tox7t03.fsf@gnu.org> <87a92zrj4b.fsf@secretsauce.net> <83egsbzbfu.fsf@gnu.org> <87r3vykdse.fsf@secretsauce.net> <87ppbikb6g.fsf@secretsauce.net> <54944426.6090900@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1419030700 1702 80.91.229.3 (19 Dec 2014 23:11:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2014 23:11:40 +0000 (UTC) Cc: 19117@debbugs.gnu.org To: Dmitry Antipov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 20 00:11:34 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y26hZ-0007GI-4m for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Dec 2014 00:11:17 +0100 Original-Received: from localhost ([::1]:60856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y26hX-0006UK-PW for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Dec 2014 18:11:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y26hQ-0006U8-IL for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2014 18:11:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y26hK-0006Hj-Fx for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2014 18:11:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y26hK-0006Hf-Am for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2014 18:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y26hJ-00076X-Re for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2014 18:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Dec 2014 23:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19117 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19117-submit@debbugs.gnu.org id=B19117.141903062527249 (code B ref 19117); Fri, 19 Dec 2014 23:11:01 +0000 Original-Received: (at 19117) by debbugs.gnu.org; 19 Dec 2014 23:10:25 +0000 Original-Received: from localhost ([127.0.0.1]:51962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y26gi-00075Q-EC for submit@debbugs.gnu.org; Fri, 19 Dec 2014 18:10:25 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:45478) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y26gf-00075G-Ih for 19117@debbugs.gnu.org; Fri, 19 Dec 2014 18:10:22 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4998B209B8 for <19117@debbugs.gnu.org>; Fri, 19 Dec 2014 18:10:21 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Fri, 19 Dec 2014 18:10:21 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=x-sasl-enc:references:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-type; s=mesmtp; bh=ED0/aYiqO1rv nQODMsYErdNYJ3Y=; b=IMO9K7pKyHEEqZCcZtZ30UB9gpv8CZ7V16FN6p3eWynM G3RC+I7jlzCOgu21/x1wCQWpHMT6VoI8I/BXdqTfLS00SSCloyEkqCuh5eCFMCKu GSfX5invHW9uFxEzkJE/AccBLxlW3jKEqAFdyHfAfxXIcsGAbidbnrFNrzIcbyA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:references:from:to:cc:subject :date:in-reply-to:message-id:mime-version:content-type; s= smtpout; bh=ED0/aYiqO1rvnQODMsYErdNYJ3Y=; b=F0/TyoHxU3Xjkucy797f xdhmTUAjQkonsALieTQdXJjSTlrma9RAwGNSrxzRMfdFl7jKEDMQ7PFNgvO4zWAv DkGD6eJoSUfM7EQXcNIvpM0Xx9MYrsttOOu2ZxiwFyl9/bGqEaMssZ19jlTrDSnv Pjvq8fK5N4dGpp2A2ANP1xQ= X-Sasl-enc: mAMVYHx2CPRSuU+0OLfynOIldF1fySDgHgz4Fc3uQBo4 1419030620 Original-Received: from shorty.local (unknown [76.91.145.213]) by mail.messagingengine.com (Postfix) with ESMTPA id F1CCAC00281; Fri, 19 Dec 2014 18:10:20 -0500 (EST) Original-Received: from dima by shorty.local with local (Exim 4.84) (envelope-from ) id 1Y26gd-0007jR-LX; Fri, 19 Dec 2014 15:10:19 -0800 In-reply-to: <54944426.6090900@yandex.ru> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:97584 Archived-At: Dmitry Antipov 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