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: Fri, 12 Nov 2021 16:33:36 +0800 (CST)
















At 2021-11-12 16:23:50, "Lars Ingebrigtsen" <larsi@gnus.org> wrote:
>tumashu  <tumashu@163.com> writes:
>
>>>I've now fixed up another bug in this area -- could you build Emacs
>>>again (from master) and check whether it fixes this issue, too?  (I'd
>>>say it's a 50/50 chance.  )
>>
>> In my opinion, I do not care regular or Medium, and I just want to one of 
>> them,
>> maybe Regular is more common than medium
>
>But did the change fix the problem you were seeing?

yes


Maybe the real reason I use :weight 'normal or :weight :media is that
without two, the below code sometimes will select bold weight, I do not know 
why.

(progn
  (set-face-attribute
   'default nil
   :font (font-spec :name "PragmataPro"
                    :size 14.0))
  (dolist (charset '(kana han symbol cjk-misc bopomofo))
    (set-fontset-font
     t
     charset
     (font-spec :name "黑体"
                :size 14.0))))








>
>-- 
>(domestic pets only, the antidote for overdose, milk.)
>   bloggy blog: http://lars.ingebrigtsen.no
>
>

reply via email to

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