unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Heime <heimeborgia@protonmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Changing font weight with buffer-face-mode-invoke
Date: Thu, 27 Jun 2024 10:59:46 +0000	[thread overview]
Message-ID: <afttYi5tF2tBDLA_ZEEoYlPsPW8ghoHd4ueTPiX739lR7xu6beTJOUdgr2StQJZvW1LH62yVbAE3CrIrZjA1A8elOh3IIxTmiSMr4ADpzmE=@protonmail.com> (raw)
In-Reply-To: <864j9e65uo.fsf@gnu.org>


On Thursday, June 27th, 2024 at 10:24 AM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Thu, 27 Jun 2024 08:48:18 +0000
> > From: Heime heimeborgia@protonmail.com
> > 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-<down-mouse-1> 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.

Somehow, the "Change Buffer Font" tool allows selection of that information and
gets things to work.  Perhaps there are things missing for correct specification
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 ?





  reply	other threads:[~2024-06-27 10:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-25 21:58 Changing font weight with buffer-face-mode-invoke Heime
2024-06-26 12:55 ` Eli Zaretskii
2024-06-26 17:08   ` Heime
2024-06-26 18:39     ` Eli Zaretskii
2024-06-26 19:32       ` Heime
2024-06-27  4:56         ` Eli Zaretskii
2024-06-26 20:54       ` Heime
2024-06-27  5:23         ` Eli Zaretskii
2024-06-27  8:48           ` Heime
2024-06-27  9:30             ` Yuri Khan
2024-06-27 10:24             ` Eli Zaretskii
2024-06-27 10:59               ` Heime [this message]
2024-06-27 12:31                 ` Eli Zaretskii
2024-06-27 16:49                   ` Heime

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='afttYi5tF2tBDLA_ZEEoYlPsPW8ghoHd4ueTPiX739lR7xu6beTJOUdgr2StQJZvW1LH62yVbAE3CrIrZjA1A8elOh3IIxTmiSMr4ADpzmE=@protonmail.com' \
    --to=heimeborgia@protonmail.com \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).