GNU bug report logs - #33019
26.1; can not set fontset as frame font by set-frame-font

Previous Next

Package: emacs;

Reported by: ynyaaa <at> gmail.com

Date: Thu, 11 Oct 2018 15:06:02 UTC

Severity: normal

Found in version 26.1

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: ynyaaa <at> gmail.com
Cc: 33019 <at> debbugs.gnu.org
Subject: bug#33019: 26.1; can not set fontset as frame font by set-frame-font
Date: Sat, 13 Oct 2018 13:53:39 +0300
> From: ynyaaa <at> gmail.com
> Cc: 33019 <at> debbugs.gnu.org
> Date: Sat, 13 Oct 2018 19:38:00 +0900
> 
> >> (insert (propertize "ABC" 'face '(:family "Noto Serif")))
> >> shows characters with "Noto Serif".
> >> 
> >> (progn (set-fontset-font "fontset-default" '(#x4E00 . #x9FFF)
> >>                          "Noto Sans CJK JP Regular")
> >>        (insert (propertize "\x4E00" 'face '(:family "Noto Serif CJK JP"))))
> >> shows the character with "Noto Sans CJK JP Regular",
> >> not "Noto Serif CJK JP".
> >
> > Why do you define this range of characters to use Noto Sans if you
> > actually want to see it in Noto Serif?  And in any case, why do use
> > :family instead of specific font in the face definition?
> 
> I want to display some web pages partially with serif fonts.

How is the text in those web pages different from the other text,
where you want Sans-Serif fonts?

> Also I want to display chinese language text with "Noto Serif CJK SC"
> or "Noto Serif CJK TC".

But then why do you define the range u+4E00..u+9FFF to be displayed by
"Noto Sans CJK JP"?  This range is for Chinese text, AFAIK.

And this still doesn't answer the question if why do you use :family
instead of specifying the actual fonts you want.




This bug report was last modified 3 years and 86 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.