bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#51704: 29.0.50; set-fontset-font do not work well with :weight 'norm


From: tumashu
Subject: bug#51704: 29.0.50; set-fontset-font do not work well with :weight 'normal of font-spec
Date: Thu, 11 Nov 2021 06:45:01 +0800 (CST)






--
发自我的网易邮箱手机智能版
<br/><br/><br/>


----- Original Message -----
From: "Eli Zaretskii" <eliz@gnu.org>
To: "Lars Ingebrigtsen" <larsi@gnus.org>
Cc: tumashu@163.com, 51704@debbugs.gnu.org
Sent: Wed, 10 Nov 2021 20:22:00 +0200
Subject: bug#51704: 29.0.50; set-fontset-font do not work well with :weight 'normal of font-spec

> 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)?

sorry, i use debian linux, just copy YaHei fonts to test.
maybe many Chinese font only have one of them, i do not know.



reply via email to

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