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 09:55:29 -0500 Message-ID: References: <83bkp4bfqf.fsf@gnu.org> <83wn7s9txp.fsf@gnu.org> <83pmdk9pat.fsf@gnu.org> <83cz9j9zyu.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="18320"; 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 15:56:30 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 1owPGg-0004YR-KA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Nov 2022 15:56:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owPGH-0001qP-42; Sat, 19 Nov 2022 09:56:05 -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 1owPGE-0001pz-OD for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 09:56: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 1owPGE-0003kI-DH for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 09:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owPGE-0008AN-5K for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 09:56:02 -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 14:56: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.166886974631197 (code B ref 59347); Sat, 19 Nov 2022 14:56:02 +0000 Original-Received: (at 59347) by debbugs.gnu.org; 19 Nov 2022 14:55:46 +0000 Original-Received: from localhost ([127.0.0.1]:40700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owPFy-00086z-5L for submit@debbugs.gnu.org; Sat, 19 Nov 2022 09:55:46 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:23585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owPFs-00080d-DU for 59347@debbugs.gnu.org; Sat, 19 Nov 2022 09:55:44 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id ED1EA1000F2; Sat, 19 Nov 2022 09:55:34 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 300AF100099; Sat, 19 Nov 2022 09:55:33 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1668869733; bh=BR4kn0jrN60aVCkZojlJg9FAxQ5mLehkXSC5OarQAKQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=f6oZOW9TX6i10qGBY0BuBgwAtZdrDFg5dEpcHlli68vLEqwR4MrYcqmuCQERZtLGv F3j3SjcOqW2bZErpAB8B29ivJ4dqybmRX678HngwxIPW+VAGknCghKWP5+csGIzVvP hVbH7rvRn5/0AFpI/yFK19ivKoQOdZLnIirY/g+ha550TSVhJUAq7YFcl+IRLCJAU0 IC6WYF95OhQ9/SmZ3AIuNs/++0LRCxp+Sz/ryjbH/7xdjwBWa46e17WuoVogZxzaIB XTne86GBReRnWPsd7VIMKoI/lCtovL1fTjarVAAlQMfE2Es5IHm9Xo1FYBJS7x1PUC bamWbcU4etq1A== Original-Received: from pastel (unknown [104.247.241.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E6DC4120415; Sat, 19 Nov 2022 09:55:32 -0500 (EST) In-Reply-To: <83cz9j9zyu.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 19 Nov 2022 09:15:53 +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:248347 Archived-At: > Then Emacs does here what we intended it to do: it tries to match the > variable-pitch font to the attributes of the default font. And DejaVu > Sans fails that test on your system, because DejaVu Sans doesn't have > a variant with the font attributes that are present in misc-fixed font > you use as the default face's font. Then maybe the problem is the following: I do not consider `-misc-fixed-*-r-semicondensed-*-13-*-*-*-*-*-*-*` to include "please use non-anti-aliased fonts", contrary to the `-fn monospace:antialias=0` of bug#37473? I'd actually be happier if Emacs could find an anti-aliased version of misc-fixed :-) The only part I could see that "collides" with "DejaVu Sans" is the "semicondensed" part, but if I change my recipe to add `:width normal`, I *still* don't get to see my variable-pitch text in DejaVu Sans. Oh wait... I can recover the behavior I want by selecting :family "DejaVu Sans" :foundry "PfEd" so the problem is the foundry info. Changing the recipe to use -*-fixed-*-r-semicondensed-*-13-*-*-*-*-*-*-* doesn't help, OTOH (IOW Emacs insists on preserving the foundry even if I did not explicitly request any particular foundry). Does it make sense to preserve the `:foundry` attribute when the `:family` is different? I always thought of `:foundry` as a weird detail which only makes sense when selecting a specific implementation of a given `:family`. In my experience the foundry is very rarely used/exposed (e.g., I had no idea what was the foundry to use for `DejaVu Sans` and I have no idea what "PfEd" means (but my web search suggests it's not really a "foundry")), and it's rare to have several foundries for the same font family. Is there some way to say `:foundry any` in order to override the default's foundry but without having to choose a particular foundry? Stefan 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