From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59347: 29.0.50; `:family` face setting ignored Date: Sat, 19 Nov 2022 11:01:03 -0500 Message-ID: References: <83bkp4bfqf.fsf@gnu.org> <83wn7s9txp.fsf@gnu.org> <83pmdk9pat.fsf@gnu.org> <83cz9j9zyu.fsf@gnu.org> <838rk77yfo.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5819"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 59347@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 19 17:02:19 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1owQIM-0001L2-41 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Nov 2022 17:02:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owQI7-0006ga-Rv; Sat, 19 Nov 2022 11:02:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owQI6-0006e7-GA for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 11:02:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owQI6-0007Au-6h for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 11:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owQI5-0001Px-Uj for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 11:02:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Nov 2022 16:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59347 X-GNU-PR-Package: emacs Original-Received: via spool by 59347-submit@debbugs.gnu.org id=B59347.16688736795399 (code B ref 59347); Sat, 19 Nov 2022 16:02:01 +0000 Original-Received: (at 59347) by debbugs.gnu.org; 19 Nov 2022 16:01:19 +0000 Original-Received: from localhost ([127.0.0.1]:41003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owQHO-0001P0-H0 for submit@debbugs.gnu.org; Sat, 19 Nov 2022 11:01:18 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:63487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owQHL-0001Om-UF for 59347@debbugs.gnu.org; Sat, 19 Nov 2022 11:01:17 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 63B2A44115C; Sat, 19 Nov 2022 11:01:10 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id DB873440B09; Sat, 19 Nov 2022 11:01:04 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1668873664; bh=bg3cP6ry/qSBEZVZXKhi2uFWx4Osmut886vSWsCgoVY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=OG2SYlYQJYRTq3cVAUudVBWI1o4C+HVF8ZKwJMiK542vMS6R+LMQGFUCPUubOIblY 3F6XFnvZJzmV9YOCcC1z3uL+Ri1aONVRpKWRl8uaVR1gaia7mQgXI/XJ8I3uOQTs2V E2NPT0EKgZ6LkifXBqAYkM1z0AEgqxt3AYcF4HJWIKJq1NGw5EL/ozgli7rETkgd8g rNpo3ZN9mlFnWOVMN5TAeka2MbO7r0g4XWagHI+PXP15bUtJE/55cS4bUdZ5Bn3DgY oVwJFvjjpI26FYjYekbLHibxNvYsXYjqkKoiDV6X9S5mez8JL6bo3Avw7JvNjEifTN jPSEewfnbrhlw== Original-Received: from pastel (unknown [104.247.241.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B912C1205CC; Sat, 19 Nov 2022 11:01:04 -0500 (EST) In-Reply-To: <838rk77yfo.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 19 Nov 2022 17:31:55 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:248353 Archived-At: > But I'd be happier if you could step through the code and verified > that indeed the foundry mismatch is what causes us to reject DejaVu > Sans, and that after we reject it, we never try it with foundry set to > nil in the font-spec. Perhaps we first set family to nil and only > after that set foundry to nil? I'll try that, tho I haven't looked at that code in quite a while, so it'll take some time for me to figure out how&where to look. >> PS: Things become really weird with: >> >> src/emacs -Q --eval '(progn (custom-set-faces `(variable-pitch ((t >> (:family "DejaVu Sans" :foundry "*"))))) (add-to-list `default-frame-alist >> `(font . "-*-fixed-*-*-semicondensed-*-13-*-*-*-*-*-*-*")) >> (font-lock-mode -1) (insert (propertize "hello" `face `variable-pitch) " >> world"))' >> >> where "hello" ends up with the following font: >> >> ftcrhb:-urw-Century Schoolbook L-medium-normal-normal-*-13-*-*-*-*-0-iso10646-1 > > Why is this weird? To me this font comes literally out of nowhere. AFAICT the only relevant face specifications at play here are the two pieces of font-info in the recipe (and `face-font-family-alternatives` but this doesn't seem to play any role). So, how do we end up with the `Century Schoolbook L` family (rather than either `fixed` or `DejaVu Sans` both of such seem just as qualified)? And if `urw` matches `*`, then why doesn't `PfEd` match it as well? Stefan