all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: tumashu@163.com, 51704@debbugs.gnu.org
Subject: bug#51704: 29.0.50; set-fontset-font do not work well with :weight 'normal of font-spec
Date: Wed, 10 Nov 2021 20:22:00 +0200	[thread overview]
Message-ID: <83ilwz3m7r.fsf@gnu.org> (raw)
In-Reply-To: <87o86snbar.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed,  10 Nov 2021 00:45:16 +0100)

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: tumashu@163.com,  51704@debbugs.gnu.org
> Date: Wed, 10 Nov 2021 00:45:16 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Can we rethink this incompatible change?  Isn't there a way of
> > achieving the same goal without breaking people's font customizations?
> > Why was there a need to make 'normal' and 'medium' be different?
> 
> Because (some) fonts define both a `normal' and `medium' weight, and
> they are different weights.  Previously Emacs couldn't use both.
> 
> The basic problem is in the font selection mechanism we choose -- if
> we're asking for `normal' (weight 80) and the font doesn't have a weight
> in the area of 78-82 (I think it was; it's been a couple of weeks since
> I looked at this), it'll just give up and say "I can't find the font"
> instead of choosing the closest weight the font does have.  Which would
> improve the situation significantly for users.

But the problem I saw was that w32font.c didn't have both medium and
normal, it had only one of them.  So I now readjusted the conversion
between Fontconfig values and MS-Windows values in a way that supports
both normal and medium.  Feng, could you please try the latest master
branch, with your original fontset customizations, and see if there is
any change (hopefully, for the better)?





  reply	other threads:[~2021-11-10 18:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-09  6:44 bug#51704: 29.0.50; set-fontset-font do not work well with :weight 'normal of font-spec tumashu
2021-11-09  7:08 ` Lars Ingebrigtsen
2021-11-09  7:29   ` bug#51704: " tumashu
2021-11-09  7:33     ` Lars Ingebrigtsen
2021-11-09  7:45       ` tumashu
2021-11-09 12:57       ` Eli Zaretskii
2021-11-09 23:45         ` Lars Ingebrigtsen
2021-11-10 18:22           ` Eli Zaretskii [this message]
2021-11-10 22:45             ` tumashu
2021-11-12  6:35 ` Lars Ingebrigtsen
2021-11-12  8:21   ` tumashu
2021-11-12  8:23     ` Lars Ingebrigtsen
2021-11-12  8:33       ` tumashu
2021-11-12  8:46         ` Lars Ingebrigtsen

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=83ilwz3m7r.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=51704@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=tumashu@163.com \
    /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.