From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: Changing font weight with buffer-face-mode-invoke Date: Thu, 27 Jun 2024 08:48:18 +0000 Message-ID: References: <86sewz983b.fsf@gnu.org> <86r0cj7dmh.fsf@gnu.org> <86jzib6js5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15198"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 27 10:49:14 2024 Return-path: Envelope-to: geh-help-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 1sMkob-0003gt-S2 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 27 Jun 2024 10:49:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMknu-0004MZ-S4; Thu, 27 Jun 2024 04:48:30 -0400 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 1sMkns-0004MK-UM for help-gnu-emacs@gnu.org; Thu, 27 Jun 2024 04:48:28 -0400 Original-Received: from mail-4319.protonmail.ch ([185.70.43.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMknn-0004eY-DR for help-gnu-emacs@gnu.org; Thu, 27 Jun 2024 04:48:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1719478100; x=1719737300; bh=Kki2wjA9yknGqSjiDxNVvxEOa5sMx/Gbk5AdfeSvOME=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=XOMMtZwdUuhQ01ux457/wmoOx5O/zl2tcOs6W6WRZSr/ZgiRGOXZdrC1BwqkuCLoS UCZBQt9fyAROP6R2gL7rb4qj+od+yEyow92RmGQaDjPIsfC+7/CfTF7sZvCpAvTGXa aJT273dFR7GWDUghIVNHvIP8+kDT5vIVO0AiBBMA4+FJOXqB8h/ZfeT1ixwIenL4Jb l0NhrjPx1k8/WeS8WfPye+pWZNWsFEF7USn6C45I4OkhM00UY+ZF6PRxsjOB0tw/w/ hoi+ignP1D2BwCtzN+5FmGHvgwOnhBeFsUppc0H0xknElcXNoFGJ5MpdFzxZ7KMUT8 VEZfBvAO6RtCg== In-Reply-To: <86jzib6js5.fsf@gnu.org> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: e82141f394f80f20c7937c50d1d821b9a3b87775 Received-SPF: pass client-ip=185.70.43.19; envelope-from=heimeborgia@protonmail.com; helo=mail-4319.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147006 Archived-At: On Thursday, June 27th, 2024 at 5:23 AM, Eli Zaretskii wrote= : > > Date: Wed, 26 Jun 2024 20:54:53 +0000 > > From: Heime heimeborgia@protonmail.com > > Cc: help-gnu-emacs@gnu.org > >=20 > > Could there be support functions (font-height-list :family family) and > > (font-weight-list :family family) so they can be used with > >=20 > > (buffer-face-mode-invoke > > `(:family ,face-family :height ,face-height :weight ,face-weight) t) >=20 >=20 > They were never needed, and I don't really understand why you'd need > them. So no, such functions are not planned. >=20 > > As the height and weight are customarily asked by users wanting to chan= ge > > font. >=20 >=20 > Users are not asked about these attributes, certainly not > "customarily", not in Emacs. In fact, users are not supposed to be > bothered by that at all, they just need to specify the family/families > of font(s) they want to use, and Emacs will do the rest automatically. Customarily I want to set the height for good visibility which is larger than default. And bold in some cases. =20 > IOW, I think you are talking about a problem that doesn't exist for > most Emacs users. I understand that you decided for some reason to > write some peculiar program that allows selection of these attributes > interactively, and I'm prepared to help you find the related Emacs > functionalities for that program.=20 > But the problem you are trying to solve is largely an academic one,=20 > because the resulting font will be largely not useful in Emacs, as=20 > you will discover next.=20 Not useful for the reason that it will not activate. Or because the font= =20 characteristics are not useful ? > Emacs was not designed to support selection of fonts by fine-tuning their= =20 > weight, slant, and other similar attributes, so specifying such fonts wor= ks > in some cases but doesn't work in others. If you do S- to use "Change Buffer Font", one can select thos= e attributes. I just want to do the same automatically in elisp code.