From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 Message-ID: <83h78sutsm.fsf@gnu.org> References: <86bm80a5ip.fsf@gmail.com> <83pnwfwtkh.fsf@gnu.org> <86sh1bro7t.fsf@gmail.com> <834ldrvt8k.fsf@gnu.org> <86o9byslsf.fsf@gmail.com> <831s8uwfwl.fsf@gnu.org> <86k1mmrv1z.fsf@gmail.com> <83h8hqungs.fsf@gnu.org> <86ftxarsxg.fsf@gmail.com> <83d0seukdr.fsf@gnu.org> <86bm7yrnx4.fsf@gmail.com> <83a7niugnc.fsf@gnu.org> <867eilsy91.fsf@gmail.com> <87pmngi7y1.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22028"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ynyaaa@gmail.com, 33019@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 21 16:25:27 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nMAZ4-0005YP-5m for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Feb 2022 16:25:26 +0100 Original-Received: from localhost ([::1]:50158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMAZ2-0000Dw-VH for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Feb 2022 10:25:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMAYh-0000Ci-2V for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 10:25:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nMAYg-0004va-OL for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 10:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nMAYg-0006Pw-K3 for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 10:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Feb 2022 15:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33019 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 33019-submit@debbugs.gnu.org id=B33019.164545707024620 (code B ref 33019); Mon, 21 Feb 2022 15:25:02 +0000 Original-Received: (at 33019) by debbugs.gnu.org; 21 Feb 2022 15:24:30 +0000 Original-Received: from localhost ([127.0.0.1]:38627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMAY9-0006P2-Ur for submit@debbugs.gnu.org; Mon, 21 Feb 2022 10:24:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMAY8-0006Op-JF for 33019@debbugs.gnu.org; Mon, 21 Feb 2022 10:24:29 -0500 Original-Received: from [2001:470:142:3::e] (port=54184 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMAY3-0004t6-71; Mon, 21 Feb 2022 10:24:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=2J4a7BygEvMA1JY2J+i+MIoznd/QbSfVIEB5YIOaIkw=; b=cLLy1KDEcFRc QgQenN8iRjdpd56ZJ2BSXqG6GQ0EFszK/MDMN6b43X+7xa0AtUH6tjndPVl5bbzqqCu6MYjCHlpUL TF9jo0XL6a032LrYT7yo/TzKbvkinXrVIURDSN4p4cxLWZqiOCOSPL0HjDQAvlGvN5rUkdfRcYeaT YMDHTCLsdTsKD+6bafTeRB8rCHi3iF1imqeHIG2HMSr3B5n99KFSokXD6l/ESchE3z1AOS3HDdc4y KQ9wZ4bEiIbaiw1oIIqGN2LthUGv2t7EyZn9dbjqE4kd5zr2ZqWYP9/Yxq3enu6I5UyWv+EUkYBHn pBUnBF46J+LEHrN9igUb/w==; Original-Received: from [87.69.77.57] (port=3016 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMAY1-0008DL-4f; Mon, 21 Feb 2022 10:24:22 -0500 In-Reply-To: <87pmngi7y1.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 21 Feb 2022 15:57:10 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:227353 Archived-At: > From: Lars Ingebrigtsen > Cc: Eli Zaretskii , 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