From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: ynyaaa@gmail.com, 33019@debbugs.gnu.org
Subject: bug#33019: 26.1; can not set fontset as frame font by set-frame-font
Date: Mon, 21 Feb 2022 17:24:25 +0200 [thread overview]
Message-ID: <83h78sutsm.fsf@gnu.org> (raw)
In-Reply-To: <87pmngi7y1.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 21 Feb 2022 15:57:10 +0100)
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: Eli Zaretskii <eliz@gnu.org>, 33019@debbugs.gnu.org
> Date: Mon, 21 Feb 2022 15:57:10 +0100
>
> > Evaluating the form below, five U+4E00s are inserted with same glyphs.
> > C-u C-x = on each character shows the same information.
> >
> >> display: by this font (glyph code)
> >> uniscribe:-outline-Noto Sans CJK JP
> >> Regular-normal-normal-normal-sans-17-*-*-*-p-*-iso8859-1 (#x2667)
> >
> > (let ((prefix "-outline-Noto Serif CJK JP-normal-normal-normal-serif-*-*-*-*-p-*-"))
> > (set-frame-font "Noto Mono")
> > (set-fontset-font "fontset-default" '(#x4E00 . #x9FFF)
> > "Noto Sans CJK JP Regular")
> > (insert "\x4E00"
> > (propertize "\x4E00" 'face '(:family "Noto Serif CJK JP"))
> > (propertize "\x4E00" 'face '(:font "Noto Serif CJK JP"))
> > (propertize "\x4E00" 'face (list :font (concat prefix "iso10646-1")))
> > (propertize "\x4E00" 'face (list :font (concat prefix "jisx0208-sjis")))
> > ))
>
> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)
>
> Trying this in Emacs 29, I get a different font on the second char:
The OP uses MS-Windows.
This bug report is complicated by 2 factors:
. specifying a font for a face actually affects directly only the
ASCII characters; non-ASCII will not necessarily use that font if
the default fontset says otherwise, or if Emacs thinks that this
font cannot support those non-ASCII characters;
. specifying :family in a face doesn't work very well on Windows,
because the Windows API for enumerating fonts that belong to a
family only finds 4 font variants: regular, bold, italic, and
bold-italic; it doesn't find any other variants -- this could
cause some font families to be rejected
prev parent reply other threads:[~2022-02-21 15:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-11 15:04 bug#33019: 26.1; can not set fontset as frame font by set-frame-font ynyaaa
2018-10-12 6:46 ` Eli Zaretskii
2018-10-12 18:53 ` ynyaaa
2018-10-12 19:51 ` Eli Zaretskii
2018-10-13 1:00 ` ynyaaa
2018-10-13 5:54 ` Eli Zaretskii
2018-10-13 10:38 ` ynyaaa
2018-10-13 10:53 ` Eli Zaretskii
2018-10-13 11:23 ` ynyaaa
2018-10-13 12:00 ` Eli Zaretskii
2018-10-13 13:12 ` ynyaaa
2018-10-13 13:20 ` Eli Zaretskii
2018-10-13 14:43 ` ynyaaa
2018-10-15 16:16 ` Eli Zaretskii
2022-02-21 14:57 ` Lars Ingebrigtsen
2022-02-21 15:24 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83h78sutsm.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=33019@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=ynyaaa@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).