From: Nicolas Martyanoff <nicolas@n16f.net>
To: emacs-devel@gnu.org
Subject: Font selection depending on the face weight
Date: Mon, 22 May 2023 14:20:05 +0200 [thread overview]
Message-ID: <87ilckwoay.fsf@valhala.localdomain> (raw)
Hi,
I stumbled upon a strange behaviour. With the IntelOne Mono font [1],
Emacs (Emacs 28.2 GUI on Linux) maps font faces as follows:
'((t :font "IntelOne Mono-11" :weight light)) -> "Light"
'((t :font "IntelOne Mono-11" :weight semi-light)) -> "Light"
'((t :font "IntelOne Mono-11" :weight normal)) -> "Medium"
'((t :font "IntelOne Mono-11" :weight medium)) -> "Medium"
'((t :font "IntelOne Mono-11" :weight semi-bold)) -> "Bold"
None of the Emacs weight maps to the "Normal" font weight (Light,
Medium, Normal and Bold are the name of the weights as reported by all
other applications).
From a quick search, Emacs uses font-weight-table to map numeric font
weights to symbolic weights, but I cannot find any link between these
numeric values and the weight names reported by other applications.
Is there something I can do to control (or at least understand) the way
weights are mapped?
[1] https://github.com/intel/intel-one-mono
Best,
--
Nicolas Martyanoff
https://n16f.net
nicolas@n16f.net
next reply other threads:[~2023-05-22 12:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-22 12:20 Nicolas Martyanoff [this message]
2023-05-22 13:00 ` Font selection depending on the face weight Robert Pluim
2023-05-22 13:29 ` Nicolas Martyanoff
2023-05-22 13:40 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ilckwoay.fsf@valhala.localdomain \
--to=nicolas@n16f.net \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.