GNU bug report logs -
#39656
27.0.60; ordering of fonts in fontset is ignored
Previous Next
Reported by: ynyaaa <at> gmail.com
Date: Tue, 18 Feb 2020 13:15:02 UTC
Severity: normal
Found in version 27.0.60
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 39656 <at> debbugs.gnu.org (full text, mbox):
> Date: Wed, 19 Feb 2020 11:02:44 +0000
> From: Alan Third <alan <at> idiocy.org>
> Cc: 39656 <at> debbugs.gnu.org
>
> > Evaluating the form below, every character is displayed with "SimHei"
> > if glyphs are defined in both "SImHei" and "MS Gothic".
> > For example, most of CJK Ideographs are displayed with "SimHei".
> > "MS Gothic" is not used between U+3400 and U+9FA5.
> >
> > (let* ((ascii "SimHei")
> > (primary "MS Gothic")
> > (secondary ascii))
> > (setq use-default-font-for-symbols nil)
> > (set-frame-font ascii)
> > (set-fontset-font nil '(#x80 . #x10FFFF) primary)
> > (set-fontset-font nil '(#x80 . #x10FFFF) secondary nil 'append))
>
> As I understand it the fontsets are used as fallbacks if the default
> font doesn’t contain the desired glyph. Since SimHei DOES contain the
> glyph and has been set as the default (set-frame-font) we would expect
> to see it displayed with SimHei.
Yes, that is true, AFAIU. Commenting out this line:
(set-frame-font ascii)
makes more characters use MS Gothic. However, CJK Ideographs are
still not displayed with MS Gothic, but with SimHei (I don't have that
font on my system, so I used SimSun instead). But I don't see a
problem here, because MS Gothic covers only a very small fraction of
CJK Ideographs. So Emacs does TRT here, although I couldn't figure
out why it rejects MS Gothic for these characters.
This bug report was last modified 4 years and 36 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.