From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#59347: 29.0.50; `:family` face setting ignored Date: Thu, 08 Dec 2022 14:59:25 +0000 Message-ID: References: <83tu2t4ie9.fsf@gnu.org> <7cc9e03786e324ff82ef@heytings.org> <83bkp04gjl.fsf@gnu.org> <83leo42vm9.fsf@gnu.org> <0d1ea3007fd94b7ae0b1@heytings.org> <83r0xv1649.fsf@gnu.org> <0d1ea3007f532a493429@heytings.org> <83cz9f12bh.fsf@gnu.org> <835yewleyn.fsf@gnu.org> <83tu2b9rlx.fsf@gnu.org> <83k0347gtu.fsf@gnu.org> <83sfhq2tu7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14654"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 59347@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 08 16:00:38 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 1p3IO5-0003cs-85 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Dec 2022 16:00:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3INn-0006gU-SK; Thu, 08 Dec 2022 10:00:19 -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 1p3INc-0006cj-NC for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 10:00:11 -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 1p3INW-0005yq-TJ for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 10:00:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p3INW-0003qL-IH for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 10:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Dec 2022 15:00: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.167051157014738 (code B ref 59347); Thu, 08 Dec 2022 15:00:02 +0000 Original-Received: (at 59347) by debbugs.gnu.org; 8 Dec 2022 14:59:30 +0000 Original-Received: from localhost ([127.0.0.1]:57272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3IMz-0003pe-Np for submit@debbugs.gnu.org; Thu, 08 Dec 2022 09:59:30 -0500 Original-Received: from heytings.org ([95.142.160.155]:48948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3IMx-0003pY-Is for 59347@debbugs.gnu.org; Thu, 08 Dec 2022 09:59:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1670511566; bh=t9Nn5Jw6gV4XekT2K+Il9rurbBoynulwhy/Pp21K19U=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=0+xvzYkIIS7HyPQDz6o3NTx39UZo17cgOftvlpVUYVCW/QXjZ5i/4aLSsFyemlsPq AMPgkfGrPW2V2iaLWDTBIxWYu/tIIdQ6pw8vqBMs97uTJpSTWKmuF86psrIFVYkbDM 2JqbVUiDIkNq+XoGvkuKZy40ExA8Gvk9GzKZUFLlCBZq1T3L1Rd176QFXKh3iJOLES gOKYyP7Lt9UB4CV2xtYqgKW7sn/3Aq0k5b8g/9Gw66Ve6j0sxtjnDARvQvpUZ/6gjz mxzwowd76JR0yEpqqMojAdvK5275xlXLhhOIF4p2ZJLJFn+DMg/m26mM/TNrNfeLtk J6IYighrsxtxA== In-Reply-To: <83sfhq2tu7.fsf@gnu.org> 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:250302 Archived-At: >> Do you mean that if a user chooses a font for the default face that has >> a single variant (say 'regular'), then the 'bold' face (which does not >> specify any family) should be realized with another font which has a >> bold variant? And that the 'italic' face should likewise be realized >> with another font which has an italic variant? > > I don't think these situations are possible, at least not all of them, > because Emacs will not use a font for the default face if that font > doesn't have at least the bold or italic variant. > Hmmm... here at least it does. With Fixedsys500c.ttf in http://www.ler.is.edu.ro/~ema/proiecte/soft/2005/apm/+predesign/fonts/fixedsys500c.zip (which has no variants) and (set-face-attribute 'default nil :font "FixedSysTTF"), the bold, italic and bold-italic faces are identical. >> FWIW, I don't think either of these options are reasonable. > > You keep saying that, but you don't explain why this must be the truth. > A user or a Lisp program can reasonably want an ultra-bold font and > consider that more important than keeping the family. You never > explained why you thought this to be an unreasonable request. > It's only my opinion, indeed. I don't think it's a completely unreasonable request, but it's not what Emacs has been doing so far, and I do think that it's not what Emacs should do by default. It is better to preserve a visual coherence / uniformity. Also note that allowing that would mean that Emacs would need to consider all fonts when realizing a face, instead of what it does now, namely to relax the family/... attributes only when necessary, that is, to consider more fonts only when necessary. And also note that, should a user really want a specific ultra-bold font for a certain face, that is already possible with the existing infrastructure, by making that choice explicit, e.g. (set-face-attribute 'bold nil :font "Desired Font" :weight 'ultra-bold). And it is also possible, with the existing infrastructure, to list the available fonts with given attribute values, e.g. with (list-fonts (font-spec :weight 'ultra-bold)), and to select the best one in that list with an appropriate fourth argument to list-fonts.