all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Nicolas P. Rougier (inria)" <nicolas.rougier@inria.fr>
Cc: emacs-devel@gnu.org
Subject: Re: Font weight selection problem
Date: Tue, 23 Jan 2024 19:28:14 +0200	[thread overview]
Message-ID: <86il3k558x.fsf@gnu.org> (raw)
In-Reply-To: <m2sf2qmuoh.fsf@inria.fr> (nicolas.rougier@inria.fr)

> 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	other threads:[~2024-01-23 17:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-21 17:41 Font weight selection problem Nicolas P. Rougier (inria)
2024-01-23 17:28 ` Eli Zaretskii [this message]
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

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=86il3k558x.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=nicolas.rougier@inria.fr \
    /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.