unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing font weight with buffer-face-mode-invoke
Date: Wed, 26 Jun 2024 15:55:36 +0300	[thread overview]
Message-ID: <86sewz983b.fsf@gnu.org> (raw)
In-Reply-To: <Uhc3CcFI-58QMY3sDSFOlDpse5YP_fFyj01BybK1pPpdh4PmvN3hLKWsjy1t46Z5HBNx-dl-4wg58rPfhD-sgFZRYlT084ubq3NNWjL0vqU=@protonmail.com> (message from Heime on Tue, 25 Jun 2024 21:58:50 +0000)

> Date: Tue, 25 Jun 2024 21:58:50 +0000
> From: Heime <heimeborgia@protonmail.com>
> 
> I use buffer-face-mode-invoke to change the font.  I also want to
> change the weight, which is tricky.  What option for weight are 
> available ?  Different fonts usually have different weight settings
> but have no clues about how to get the weights available for each font.

Use standard weights: regular, medium, bold.  Some font families have
also additional weights: light, semi-light, semi-bold, extra-bold.
The full list of weight values is in the ELisp manual, in the node
"Face Attributes".



  reply	other threads:[~2024-06-26 12:55 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 [this message]
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
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=86sewz983b.fsf@gnu.org \
    --to=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).