[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49797: 28.0.50; Setting face to custom fontset doesn't work
From: |
Fu Yuan |
Subject: |
bug#49797: 28.0.50; Setting face to custom fontset doesn't work |
Date: |
Mon, 2 Aug 2021 13:14:18 -0400 |
> 在 2021年8月2日,上午7:57,handa <handa@gnu.org> 写道:
>
>
>>
>>> From: Yuan Fu <casouri@gmail.com>
>>> Date: Sat, 31 Jul 2021 17:37:05 -0400
>>>
>>> If I evaluate the following:
>>>
>>> (progn
>>> (create-fontset-from-fontset-spec
>>> (font-xlfd-name
>>> (font-spec :registry "fontset-lunamono")))
>>> (set-fontset-font "fontset-lunamono" 'latin (font-spec :family "SF Mono"))
>>> (set-face-attribute 'default nil :fontset "fontset-lunamono”))
>>>
>>> I expect Latin characters to be shown in SF Mono font, but that’s not what
>>> happened. If I instead set font for the default fontset, the characters in
>>> the buffer are correctly displayed in SF Mono font. I tried this code
>>> snippet with Emacs 26, 27 and 28, and all of them have this problem.
>>>
>
> Please try (set-face-attribute 'default nil :font "fontset-lunamono").
>
Sorry for the confusion. I actually tried both :font and :fontset, but neither
works.
Yuan