From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: talchas@talchas.net Newsgroups: gmane.emacs.bugs Subject: bug#30203: 25.3; without-xft fonts don't properly inherit from default face Date: Sun, 21 Jan 2018 21:23:20 -0800 Message-ID: <877esazctz.fsf@talchas.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1516603397 13403 195.159.176.226 (22 Jan 2018 06:43:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 Jan 2018 06:43:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) To: 30203@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 22 07:43:12 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 1edVoy-00031E-PV for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jan 2018 07:43:09 +0100 Original-Received: from localhost ([::1]:50330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edVqz-0002zN-3H for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jan 2018 01:45:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edVqt-0002yY-3o for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 01:45:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edVqo-0003R3-PL for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 01:45:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57988) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edVqo-0003Qp-Gu for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 01:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1edVqo-0007gN-B1 for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 01:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: talchas@talchas.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Jan 2018 06:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30203 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151660345929448 (code B ref -1); Mon, 22 Jan 2018 06:45:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Jan 2018 06:44:19 +0000 Original-Received: from localhost ([127.0.0.1]:37652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edVq6-0007et-E7 for submit@debbugs.gnu.org; Mon, 22 Jan 2018 01:44:18 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57259) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edUa5-0005Sr-ON for submit@debbugs.gnu.org; Mon, 22 Jan 2018 00:23:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edUZz-00049j-Ab for submit@debbugs.gnu.org; Mon, 22 Jan 2018 00:23:36 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54828) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1edUZz-00049a-79 for submit@debbugs.gnu.org; Mon, 22 Jan 2018 00:23:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edUZx-0000wh-OZ for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 00:23:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edUZu-000483-IV for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 00:23:33 -0500 Original-Received: from mail-pf0-x233.google.com ([2607:f8b0:400e:c00::233]:38037) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edUZu-00047d-7n for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 00:23:30 -0500 Original-Received: by mail-pf0-x233.google.com with SMTP id k19so6248074pfj.5 for ; Sun, 21 Jan 2018 21:23:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=talchas.net; s=gmail; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=8P0bAffMT9EdEUz3tUPJufr65OdovqO+wRgiZFPTBRI=; b=EUMPbEJmbCShLP4U0E2vXciL9T8way8Vq5gQVYVKA9nx6wTCv0+QrjzZ2IF2bG9Uux Dx+87V554h8nMz4SjWzh8qyIYqnnoTk8b/a3vlvX4+KmnKgymt2ZmHZUPvikHnF81sX2 TkDlIPDmkprrD8U9sjLeBPGIYC8uYqLVMDNlQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=8P0bAffMT9EdEUz3tUPJufr65OdovqO+wRgiZFPTBRI=; b=mLmC7mxDU+HCQN+iVufbHYNohbVGECsDJgEDyCilqlsMVHvlcSwR6FJpV8Ujv7Zyii 8gjJzPs2LPl9BMn2+AqJNcW1XtFnifZaGEOpi1EwAnwxR97qUwP7NvWk3gyV1Ff0/jXh eyox5Swr6Lqnz4C1tcjhGEoqa3JutIHbg3ms5gRVIQCq84m+VJ8u6arbbuE6zOu1MJo9 dMkOzr69CPu0IWK1PO7Kc/RoatxNC6r8J6gKCL60UULyDX3h58Rzd/9RYtIO4uaZobnu /vDVcO0wUyDy8K+R9C8u4nBCd8f/aWZk3MOv+4oV8mqkDqa9WhELdgT98WsIf2UP/vd2 Eqww== X-Gm-Message-State: AKwxyte3cztBOIJ/LBS6Uhi41PDTg9g7LO2ckz4cfxrlKoQHxBJuE6LP PQh6KPEGeNm5ZB54p8u2ulD7b+LX X-Google-Smtp-Source: AH8x2247z6OEdy9NAgAQDrUwjT56nV/7G5kt02WKw1Vy43bYnWBG3IGwf1jNifRELDE18lRlhCtZJQ== X-Received: by 2002:a17:902:bf41:: with SMTP id u1-v6mr2772357pls.92.1516598608398; Sun, 21 Jan 2018 21:23:28 -0800 (PST) Original-Received: from nights-beautiful-daughter.localhost (c-69-181-143-71.hsd1.ca.comcast.net. [69.181.143.71]) by smtp.gmail.com with ESMTPSA id 62sm18142157pfw.129.2018.01.21.21.23.27 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 21 Jan 2018 21:23:27 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 22 Jan 2018 01:44:16 -0500 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:142365 Archived-At: 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 - =3D font_load_for_lface (f, attrs, attrs[LFACE_FONT_INDEX]); + =3D 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. In GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.19) of 2018-01-16 built on nights-beautiful-daughter Windowing system distributor 'The X.Org Foundation', version 11.0.11905000 System Description: NAME=3DGentoo Configured using: 'configure --prefix=3D/usr --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --mandir=3D/usr/share/man --infodir=3D/usr/share/info --datadir=3D/usr/share --sysconfdir=3D/etc --localstatedir=3D/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=3D/usr/share/doc/emacs-25.3 --htmldir=3D/usr/share/doc/emacs-25.3/html --libdir=3D/usr/lib64 --program-suffix=3D-emacs-25 --infodir=3D/usr/share/info/emacs-25 --localstatedir=3D/var --enable-locallisppath=3D/etc/emacs:/usr/share/emacs/site-lisp --with-gameuser=3D:gamestat --without-compress-install --with-file-notification=3Dinotify --enable-acl --without-dbus --without-modules --without-gpm --without-hesiod --without-kerberos --without-kerberos5 --with-xml2 --without-selinux --with-gnutls --without-wide-int --with-zlib --with-sound=3Dalsa --with-x --without-ns --without-gconf --without-gsettings --with-toolkit-scroll-bars --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --without-imagemagick --without-xft --without-cairo --without-libotf --without-m17n-flt --with-x-toolkit=3Dgtk3 --without-xwidgets GENTOO_PACKAGE=3Dapp-editors/emacs-25.3 'CFLAGS=3D-O2 -pipe -march=3Dnative -g' CPPFLAGS=3D 'LDFLAGS=3D-Wl,-O1 -Wl,--as-needed'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. "--no-desktop" ignored because the Desktop package is not loaded Entering debugger... Back to top level delete-backward-char: Text is read-only Making completion list... You can run the command =E2=80=98set-frame-font=E2=80=99 with M-x s-fr-f RET Mark set Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu cl-loaddefs pcase cl-lib debug time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote inotify dynamic-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 89132 5914) (symbols 48 19804 0) (miscs 40 56 110) (strings 32 16082 4471) (string-bytes 1 462916) (vectors 16 12028) (vector-slots 8 435971 5423) (floats 8 162 142) (intervals 56 298 4) (buffers 976 19))