From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Changing font weight with buffer-face-mode-invoke Date: Thu, 27 Jun 2024 08:23:38 +0300 Message-ID: <86jzib6js5.fsf@gnu.org> References: <86sewz983b.fsf@gnu.org> <86r0cj7dmh.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20396"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 27 07:24:30 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 1sMhcT-00054R-8X for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 27 Jun 2024 07:24:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMhbo-0002Fo-G1; Thu, 27 Jun 2024 01:23:48 -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 1sMhbh-0002FJ-Bg for help-gnu-emacs@gnu.org; Thu, 27 Jun 2024 01:23:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMhbh-0001Vf-3f for help-gnu-emacs@gnu.org; Thu, 27 Jun 2024 01:23:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=O1wBs49X290/AqrSziR4fC1cvUGO7Tei9uGTf4iZxh4=; b=UIiRBNj656R2 W8NVkQ+nFrRP6cG7m0AuGIaWmpOwJYdk/E/sbGJNiqiLEvgmFioiZcdHslrRN5WwK9BanAHR7mUR/ eA+6a9bwJcc/S/yARCmUgIw1MGI4LEnHi2nT+5T4/hBY0UyZKBdK69tc6qy1H3HldMra8EtElm+g1 Ihg2eR9fp0KEhupaiulqslJ11PB6ictIELlroL+RhkSvs03/gaL1WdJaDyu75FcZ352AH6S4KRTRl V1WjrYPypvEPcL0U8fY0jq4Drp1Z9DYm8B6VvxXAUKfmjKq1Th34S6aH22NffnYf+L9E3U0lsHrmS 26sbTVK3llqJ5D+ngW6nQQ==; In-Reply-To: (message from Heime on Wed, 26 Jun 2024 20:54:53 +0000) 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:147005 Archived-At: > Date: Wed, 26 Jun 2024 20:54:53 +0000 > From: Heime > Cc: help-gnu-emacs@gnu.org > > Could there be support functions (font-height-list :family family) and > (font-weight-list :family family) so they can be used with > > (buffer-face-mode-invoke > `(:family ,face-family :height ,face-height :weight ,face-weight) t) They were never needed, and I don't really understand why you'd need them. So no, such functions are not planned. > As the height and weight are customarily asked by users wanting to change > font. 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. 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. 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. Emacs was not designed to support selection of fonts by fine-tuning their weight, slant, and other similar attributes, so specifying such fonts works in some cases but doesn't work in others.