--- Begin Message ---
Subject: |
EWW shows chars > #xFF with font set by "set-fontset-font" |
Date: |
Wed, 29 Jul 2020 18:26:07 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
Hello,
a quick recipe:
1. Open website in EWW with chars above #xFF, e.g.:
M-x eww RET https://sjp.pl/slownik/ort/ RET
2. M-: (set-fontset-font t 'unicode "Times New Roman")
... or any font, other than in variable-pitch face
3. Watch as some chars change font.
The thing is, both unchanged and changed chars have face of
variable-pitch ("C-u C-x =" on char), so nothing should change,
I think.
Something similar happens in:
M-x list-charset-chars RET unicode-bmp RET
#x00 -> #xFF stays the same, next segments change.
Tested on: GNU Emacs 28.0.50 (build 1, x86_64-w64-mingw32) of
2020-07-05.
S. U.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#42603: EWW shows chars > #xFF with font set by "set-fontset-font" |
Date: |
Mon, 3 Aug 2020 20:39:47 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 |
>> And if I want some characters to be rendered, and the rest not to be
>> rendered - to which font I should assign "the rest"?
>
> Leave them unassigned: Emacs will find the proper font itself.
Alright, I'll stick to:
(set-fontset-font "fontset-default" 'unicode "nil")
for now, but if something goes wrong, I'll remove this line and try to
use per script/range settings for as much chars as I need/want, and let
Emacs do the work for other characters.
S. U.
--- End Message ---