emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Font weight selection problem


From: Eli Zaretskii
Subject: Re: Font weight selection problem
Date: Tue, 23 Jan 2024 19:28:14 +0200

> From: "Nicolas P. Rougier (inria)" <nicolas.rougier@inria.fr>
> Date: Sun, 21 Jan 2024 18:41:42 +0100
> 
> 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).

Did you try to change the order between :family and :weight in your
'propertize' call?

> I think the problem has been here since at least version 28.0

I'm not sure it was ever supported.  Can you make that do what you
expect in older versions of Emacs?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]