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: Fri, 18 Nov 2022 09:59:38 -0500 Message-ID: References: <83bkp4bfqf.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="8613"; 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 Fri Nov 18 16:00:42 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 1ow2rB-00021P-HK for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Nov 2022 16:00:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ow2qs-0004m8-Fa; Fri, 18 Nov 2022 10:00:24 -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 1ow2qk-0004lw-HH for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 10:00:14 -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 1ow2qY-0007NO-B5 for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 10:00:13 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ow2qX-0002LK-WD for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 10:00: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: Fri, 18 Nov 2022 15:00: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.16687835928965 (code B ref 59347); Fri, 18 Nov 2022 15:00:01 +0000 Original-Received: (at 59347) by debbugs.gnu.org; 18 Nov 2022 14:59:52 +0000 Original-Received: from localhost ([127.0.0.1]:37884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow2qO-0002KW-0P for submit@debbugs.gnu.org; Fri, 18 Nov 2022 09:59:52 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:15904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow2qI-0002KF-9u for 59347@debbugs.gnu.org; Fri, 18 Nov 2022 09:59:50 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id DA5A0441448; Fri, 18 Nov 2022 09:59:40 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 8C33C441463; Fri, 18 Nov 2022 09:59:39 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1668783579; bh=2sP2jRjYjPnpDZKnlQjKJdw3ZThEEjZ6P/8C9W7tAbw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=KhwnpC/uEcv+LZKXwiFoPnTwXVtnhnlQ9reX2ST08VOucCFLNZ2+LzXGBVXI/s+sZ nsl35kcKdyTUdOW9jH3tL+J1lXtKj4uULocn38/HW+nH6LzRaGK92A84DsWgcka71n DPmSyS9ub5ofkUjgCIKvzcez96YJEM+U9lhDQCXWvh+sFBnv3U+9I77GTfkJd14GEy ADB+SipCZniK84hClhzNkY03dmhxN6vPEEkdAAiquVKmv6o+dnwA4MYvuacrOZderf LLYTBjbGgWHZcIWDVojHqcuRe4RJta4jb8zk+/m5lIID0SgGXpAP58gBECEMKzfGUm TX9c7MPHNyeuA== Original-Received: from alfajor (unknown [45.44.229.252]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 70A4012053B; Fri, 18 Nov 2022 09:59:39 -0500 (EST) In-Reply-To: <83bkp4bfqf.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 18 Nov 2022 14:37:44 +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:248247 Archived-At: >> src/emacs -Q --eval \ >> '(progn >> (custom-set-faces `(variable-pitch >> ((t (:family "DejaVu Sans"))))) >> (add-to-list `default-frame-alist >> `(font . "-misc-fixed-*-r-semicondensed-*-13-*-*-*-*-*-*-*")) >> (font-lock-mode -1) >> (insert (propertize "hello" `face `variable-pitch)))' >> >> I get "hello" shown in the same font as with the default face >> (i.e. "misc-fixed") instead using DejaVu Sans. > > All those backquotes, are they really backquotes when you type this? Yes. > Or should they be escaped apostrophes? It's a pain in the rear to escape quotes from within quotes, so I use backquotes instead, which works as well as long as there's no comma nested inside :-) > More to the point, why do you think this is a bug in Emacs? What > happened here is that you requested a face to use some font family, > and Emacs for whatever reasons decided not to use that family. Why is > that a bug? Why are you sure Emacs didn't do that for valid reasons? I'm not. I just can't see an obvious good reason for it. I suspect I wouldn't be the only user who'd find this rather perplexing. So let me return the question: what part of the above code makes you think it's correct for Emacs to use a different font than the DejaVu Sans? > Like, for example, that DejaVu Sans doesn't have a variant with the > size that matches the default face's font? DejaVu is a scalable font, so I can't see how it could not have a size that matches. Stefan