From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59347: 29.0.50; `:family` face setting ignored Date: Sat, 19 Nov 2022 18:16:13 +0200 Message-ID: <834juu9aya.fsf@gnu.org> References: <83bkp4bfqf.fsf@gnu.org> <83wn7s9txp.fsf@gnu.org> <83pmdk9pat.fsf@gnu.org> <83cz9j9zyu.fsf@gnu.org> <838rk77yfo.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1798"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59347@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 19 17:17:34 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 1owQX8-0000Dc-KS for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Nov 2022 17:17:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owQWw-0002tT-GF; Sat, 19 Nov 2022 11:17:22 -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 1owQWd-0002q1-8R for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 11:17:15 -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 1owQWc-0002Mg-Ol for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 11:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owQWc-0001kr-FJ for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 11:17: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: Sat, 19 Nov 2022 16:17:02 +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.16688745806688 (code B ref 59347); Sat, 19 Nov 2022 16:17:02 +0000 Original-Received: (at 59347) by debbugs.gnu.org; 19 Nov 2022 16:16:20 +0000 Original-Received: from localhost ([127.0.0.1]:41009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owQVw-0001jo-3v for submit@debbugs.gnu.org; Sat, 19 Nov 2022 11:16:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owQVr-0001jZ-Fp for 59347@debbugs.gnu.org; Sat, 19 Nov 2022 11:16:19 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owQVm-0002Ce-60; Sat, 19 Nov 2022 11:16:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=LrtIdGU5N2le3Q/I7CUILr9R9xiQgwdM8aMgLO8HAqE=; b=T1+4EzChjQP0 2RNkuNSCqMfliaQZKhINNV+m6Yhh7bi+0/0JRI4bkGHaQxqqg73notBZyfpx5xbpXAkKsx8Z1u3Sd MX7NqEf/qgC3AM6a+VjaYSIq+hID4bf0Kw+o1bvFnPU5gyfn1HPMcr23G4+pAaOcedQ2Nc7o2no2C eyLtblhaupY1MQk54KfQCA+Br8VIGy5dN2cojhliqkcDKFwC9+GZYbRTd/C3oZyIBk5LDG+PlaB2s rbVzTwuhrRiJHIOVJthm5egaWAQm1qdzECe2hbWSGU+7SNlciQ5WejEZJcCLfQvkGT5DIlI9CtoZX E9el3DcKTSj8hTOTdTe50A==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owQVk-0004TW-97; Sat, 19 Nov 2022 11:16:09 -0500 In-Reply-To: (message from Stefan Monnier on Sat, 19 Nov 2022 11:01:03 -0500) 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:248354 Archived-At: > From: Stefan Monnier > Cc: 59347@debbugs.gnu.org > Date: Sat, 19 Nov 2022 11:01:03 -0500 > > >> 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. AFAIR, when we fail to find fonts that match the spec, we progressively set more and more attributes to nil, so that in the end we have all of them nil, and then the first font that matches the size is fine. > 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). The other attributes come from the default face's font, I think. > 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)? I think if you step through the code, you will see it.