all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Font selection depending on the face weight
@ 2023-05-22 12:20 Nicolas Martyanoff
  2023-05-22 13:00 ` Robert Pluim
  2023-05-22 13:40 ` Eli Zaretskii
  0 siblings, 2 replies; 4+ messages in thread
From: Nicolas Martyanoff @ 2023-05-22 12:20 UTC (permalink / raw)
  To: emacs-devel


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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-22 13:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-22 12:20 Font selection depending on the face weight Nicolas Martyanoff
2023-05-22 13:00 ` Robert Pluim
2023-05-22 13:29   ` Nicolas Martyanoff
2023-05-22 13:40 ` Eli Zaretskii

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.