all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Font weight selection problem
@ 2024-01-21 17:41 Nicolas P. Rougier (inria)
  2024-01-23 17:28 ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Nicolas P. Rougier (inria) @ 2024-01-21 17:41 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]


I'm using Emacs 29.2 on OSX and I'm having difficulty selecting a 
font with the proper weight. The following simple script shows the 
problem on my machine:

(set-frame-font "Roboto Mono-14:light")
(insert "test")
(insert (propertize "test" 'face '(:family "Roboto Mono" :weight 
light)))

The set-frame-font installs the proper font and weight.
The first insert displays the text with light weight (as expected)
The second insert displays the text with a *regular* weight 
(unexpected).

When I ask for char description for both displayed strings, Emacs 
reports " mac-ct:-*-Roboto 
Mono-regular-normal-normal-*-14-*-*-*-m-0-iso10646-1" for both 
strings (even though the visual appearance is clearly different).

I think the problem has been here since at least version 28.0 (and 
I solved it by creating a dedicated font file with a new name).

All necessary fonts are installed:

$ fc-list "Roboto Mono" -f '%{weight} %{style}\n' | sort -n

0 Thin
0 Thin Italic
[0 200]
[0 200]
50 Light
50 Light Italic
80 Italic
80 Regular
100 Medium
100 Medium Italic
200 Bold
200 Bold Italic

Nicolas


[-- Attachment #2: Screenshot 2024-01-21 at 18.26.51.png --]
[-- Type: image/png, Size: 65893 bytes --]

[-- Attachment #3: Type: text/plain, Size: 113 bytes --]


-- 
Nicolas P. Rougier —— www.labri.fr/perso/nrougier
Institute of Neurodegenerative Diseases, Bordeaux

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

end of thread, other threads:[~2024-02-01 10:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-21 17:41 Font weight selection problem Nicolas P. Rougier (inria)
2024-01-23 17:28 ` Eli Zaretskii
2024-01-23 17:39   ` Nicolas P. Rougier (inria)
2024-01-23 18:47     ` Nicolas P. Rougier (inria)
2024-01-24  9:33       ` Roman Rudakov
2024-01-24 10:51         ` Nicolas P. Rougier (inria)
2024-01-27 11:14           ` Eli Zaretskii
2024-01-27 11:45             ` Po Lu
2024-01-27 11:48               ` Eli Zaretskii
2024-01-27 13:08                 ` Po Lu
2024-02-01 10:22                   ` 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.