unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Nicolas P. Rougier (inria)" <nicolas.rougier@inria.fr>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Font weight selection problem
Date: Tue, 23 Jan 2024 18:39:40 +0100	[thread overview]
Message-ID: <m2h6j3q5y8.fsf@inria.fr> (raw)
In-Reply-To: <86il3k558x.fsf@gnu.org>


On Tue 23 Jan 2024 at 19:28, Eli Zaretskii <eliz@gnu.org> wrote:

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

No change.
 
> > 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?

With version 27.0 I was able to select the "Roboto Mono" light, 
but version 28.0 did not work anymore for some reason. I solved 
the issue by creating a font file with a unique weight (light) 
(and named it differently). It looks as if Emacs is confused by 
the "light" version inside the font but I don't know if the font 
is malformed or if Emacs interprets "light" differently. I've 
tried other fonts and the light face always ends up either thin or 
regular, which makes me think that Emacs might be the cause.

I've since found what seems to be a relevant (small) patch:
https://github.com/yaglo/emacs-mac-patches/blob/main/fix_weights_and_widths.diff

but I did not tested it yet. The patch change values for weights 
but I don't know what is the semantic of these values (and if it 
is relevant here).

Nicolas

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



  reply	other threads:[~2024-01-23 17:39 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
2024-01-23 17:39   ` Nicolas P. Rougier (inria) [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2h6j3q5y8.fsf@inria.fr \
    --to=nicolas.rougier@inria.fr \
    --cc=eliz@gnu.org \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).