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 10:59:46 +0000 Message-ID: References: <86sewz983b.fsf@gnu.org> <86r0cj7dmh.fsf@gnu.org> <86jzib6js5.fsf@gnu.org> <864j9e65uo.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="3305"; 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 13:00:59 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 1sMms7-0000gA-TA for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 27 Jun 2024 13:00:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMmr7-0000CD-PB; Thu, 27 Jun 2024 06:59:57 -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 1sMmr6-0000By-DH for help-gnu-emacs@gnu.org; Thu, 27 Jun 2024 06:59:56 -0400 Original-Received: from mail-40130.protonmail.ch ([185.70.40.130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMmr4-0000IH-1N for help-gnu-emacs@gnu.org; Thu, 27 Jun 2024 06:59:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1719485991; x=1719745191; bh=oF6w9KURTrJ2+GnrVvp3liJ2f+NQiijKfQzkxAwFDz8=; 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=ZJii7fWBSQM76w8f9Cowl8pG08+ZKFTNpiz+49wSreE9sc41F7vmR33uON6wmjiUx P/nFAnebxgXFNZ7rzQzpypmMGMJTY1D+UH4qfucV3OtwjIRzVwifUmvO1hyaSk4wya 21Kr4LXsX1tmeswA7Nqg8VIQD9BHarIyw+cPMhWJDOZw40OiqoDE4bUu0b6h/peBWK GQjOeVwuRiqw9aCMlSUg+jFP1Pbh6F+RUoBvGO7Lv5qyzNcJo530gop08hFNZgcEbg gydl4uDxu7A4xRsl1SLbGhh9MvXGRxrMoRlDcyMpvOm3wocXhY1vfmmNC7CsACSUW1 XDJKiKscnitRg== In-Reply-To: <864j9e65uo.fsf@gnu.org> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 6ca29243b062c8c65c0623a136c7d309f2f58601 Received-SPF: pass client-ip=185.70.40.130; envelope-from=heimeborgia@protonmail.com; helo=mail-40130.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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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:147009 Archived-At: On Thursday, June 27th, 2024 at 10:24 AM, Eli Zaretskii wrot= e: > > Date: Thu, 27 Jun 2024 08:48:18 +0000 > > From: Heime heimeborgia@protonmail.com > > Cc: help-gnu-emacs@gnu.org > >=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/familie= s > > > of font(s) they want to use, and Emacs will do the rest automatically= . > >=20 > > Customarily I want to set the height for good visibility which is large= r > > than default. And bold in some cases. >=20 >=20 > Selecting font size is easy and doesn't require all this complexity. >=20 > I was talking about the other font attributes: weight, slant, and > width. >=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, > > > because the resulting font will be largely not useful in Emacs, as > > > you will discover next. > >=20 > > Not useful for the reason that it will not activate. Or because the fon= t > > characteristics are not useful ? >=20 >=20 > Because using such a font in various situations and APIs will not > necessarily work. >=20 > > > Emacs was not designed to support selection of fonts by fine-tuning t= heir > > > weight, slant, and other similar attributes, so specifying such fonts= works > > > in some cases but doesn't work in others. > >=20 > > If you do S- to use "Change Buffer Font", one can select = those attributes. > > I just want to do the same automatically in elisp code. >=20 > There's no practical reason for doing so, that's all I'm saying. Somehow, the "Change Buffer Font" tool allows selection of that information= and gets things to work. Perhaps there are things missing for correct specific= ation of weight, slant and width for buffer-face-mode-invoke. Could it be that using the :family, :height, :weight is not so rodust, and = it is better to just use :font ? How would I call buffer-face-mode-invoke with :font or= similar ?