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 13:24:31 +0300 Message-ID: <864j9e65uo.fsf@gnu.org> References: <86sewz983b.fsf@gnu.org> <86r0cj7dmh.fsf@gnu.org> <86jzib6js5.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="709"; 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 12:25:12 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 1sMmJU-000AQt-Gq for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 27 Jun 2024 12:25:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMmIu-0002yf-EJ; Thu, 27 Jun 2024 06:24:36 -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 1sMmIs-0002xw-Dn for help-gnu-emacs@gnu.org; Thu, 27 Jun 2024 06:24:34 -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 1sMmIs-0002kl-1i for help-gnu-emacs@gnu.org; Thu, 27 Jun 2024 06:24:34 -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=SLI3PUwmREJj8+mLlK+lGHF8Fiy9Xm4XODFXGO+RwRk=; b=HMdjyEPqgxiV OzaZ3ng1EI3lAGNeiQTtPfyRcCGLy5itcgfsPoOX2Lzkwj8ek1jpwWSkLIWys2nubPrUsYZXTIz/s qZ9C7b6laTvxQUNBxEXufmyIEZSmmOFbIrn2bHFLDzSfs8H11EzHOuU/Gy0wYUmcDvSNXDmFSiX64 7XBO4zME8G6pC2MoJTMOXf1PFcrSlR6gJ8pJtHwD5GPZ7bBU5wOfFQrqWWmmEtgp0haVxOW0vKe9c 8TnJ6RvE6px8vrQoECdpFgfzAzKwGMdpH48WKla6M/39v7i/jiqPG8uIF+XSs/WJD6yPadTkWctAM VmP3HI+64DtNO48NUYblIg==; In-Reply-To: (message from Heime on Thu, 27 Jun 2024 08:48:18 +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:147008 Archived-At: > Date: Thu, 27 Jun 2024 08:48:18 +0000 > From: Heime > Cc: help-gnu-emacs@gnu.org > > > 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. Selecting font size is easy and doesn't require all this complexity. I was talking about the other font attributes: weight, slant, and width. > > 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. > > Not useful for the reason that it will not activate. Or because the font > characteristics are not useful ? Because using such a font in various situations and APIs will not necessarily work. > > 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. > > 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. There's no practical reason for doing so, that's all I'm saying.