From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30203: 25.3; without-xft fonts don't properly inherit from default face Date: Mon, 22 Jan 2018 17:49:50 +0200 Message-ID: <83k1w9rizl.fsf@gnu.org> References: <877esazctz.fsf@talchas.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1516636170 30853 195.159.176.226 (22 Jan 2018 15:49:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 Jan 2018 15:49:30 +0000 (UTC) Cc: 30203@debbugs.gnu.org To: talchas@talchas.net, Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 22 16:49:26 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edeLR-00070a-VL for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jan 2018 16:49:14 +0100 Original-Received: from localhost ([::1]:49306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edeNS-0002XS-Dc for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jan 2018 10:51:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edeNF-0002VN-Li for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 10:51:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edeNC-0004I8-Hj for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 10:51:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58649) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edeNC-0004Hy-DC for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 10:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1edeNC-0008DK-7O for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 10:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Jan 2018 15:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30203 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30203-submit@debbugs.gnu.org id=B30203.151663621831526 (code B ref 30203); Mon, 22 Jan 2018 15:51:02 +0000 Original-Received: (at 30203) by debbugs.gnu.org; 22 Jan 2018 15:50:18 +0000 Original-Received: from localhost ([127.0.0.1]:38313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edeMU-0008CQ-3b for submit@debbugs.gnu.org; Mon, 22 Jan 2018 10:50:18 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edeMS-0008CD-D7 for 30203@debbugs.gnu.org; Mon, 22 Jan 2018 10:50:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edeMM-0003pF-Hn for 30203@debbugs.gnu.org; Mon, 22 Jan 2018 10:50:11 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edeMG-0003if-Bd; Mon, 22 Jan 2018 10:50:04 -0500 Original-Received: from [176.228.60.248] (port=3282 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1edeME-0007BV-MW; Mon, 22 Jan 2018 10:50:03 -0500 In-reply-to: <877esazctz.fsf@talchas.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:142376 Archived-At: > From: talchas@talchas.net > Date: Sun, 21 Jan 2018 21:23:20 -0800 > > When built without xft, faces that specify weight such as bold don't > take their family from the default face if it doesn't match weight. > > You can see this with: > emacs -Q > (set-frame-font "-xos4-terminus-medium-r-normal--14-*-72-72-c-80-iso10646-1") > > and look at the mode line buffer display - on my system it is > -misc-fixed-... according to dump-face. This still occurs on git HEAD > (b3fb0d47c158cb0d1acdce5008628e1d1a337bbb) as well as the system 25.3 below. > > When built with xft this does not occur (still selected via the X font > name), and neither does it on 24.5. The proximate cause of the > regression appears to be bf0d3f76dcfe7881cb3058169b51cf6602fdcdcb, > reversing the > > - = font_load_for_lface (f, attrs, attrs[LFACE_FONT_INDEX]); > + = font_load_for_lface (f, attrs, Ffont_spec (0, NULL)); > > gives the old behavior despite --without-xft. Given that xft is fine > on 25.3, there presumably is some more correct fix to font selection. That change was made to fix two bugs, whose numbers are mentioned in the log entry and in the discussion of the bug. Can you try reproducing those bugs in the build without xft? If those bugs only happen with xft, then the fix is easy. Otherwise, we will have to investigate more thoroughly. Thanks.