From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rodrigo Morales Newsgroups: gmane.emacs.bugs Subject: bug#71025: set-fontset-font doesn't show some scripts as glyphless characters Date: Mon, 20 May 2024 11:49:21 -0500 Message-ID: <8734qca0oe.fsf@rodrigomorales.site> References: <87o7938xti.fsf@rodrigomorales.site> <86ed9zft79.fsf@gnu.org> <86a5knfs8j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7155"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71025@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 20 18:50:33 2024 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 1s96DZ-0001cV-3D for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 May 2024 18:50:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s96D5-00032d-AB; Mon, 20 May 2024 12:50:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s96D0-00031w-Sx for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 12:49:58 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s96D0-0001CY-Br for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 12:49:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s96D4-0004NV-Jn for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 12:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rodrigo Morales Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 May 2024 16:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71025 X-GNU-PR-Package: emacs Original-Received: via spool by 71025-submit@debbugs.gnu.org id=B71025.171622378116799 (code B ref 71025); Mon, 20 May 2024 16:50:02 +0000 Original-Received: (at 71025) by debbugs.gnu.org; 20 May 2024 16:49:41 +0000 Original-Received: from localhost ([127.0.0.1]:43627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s96Ci-0004Ms-0N for submit@debbugs.gnu.org; Mon, 20 May 2024 12:49:41 -0400 Original-Received: from smtpout1.mo12.mail-out.ovh.ca ([51.161.45.254]:50285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s96Cb-0004Mk-SM for 71025@debbugs.gnu.org; Mon, 20 May 2024 12:49:39 -0400 Original-Received: from mxplan1.mail.ovh.ca (unknown [10.111.38.152]) by mo12.mail-out.ovh.ca (Postfix) with ESMTPS id 4Vjk7D0C4WzHptt; Mon, 20 May 2024 13:49:27 -0300 (ADT) Original-Received: from rodrigomorales.site (54.39.251.57) by DAG2EX1.mxpca1.local (172.16.2.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 20 May 2024 12:49:26 -0400 Authentication-Results: garm.ovh; auth=pass (GARM-95B00208b3ed59-c38f-4eba-bd98-378693da8bde, C7B246BAB860EEFCF5BA39519EB15C960B261F38) smtp.auth=me@rodrigomorales.site X-OVh-ClientIp: 190.234.175.154 In-Reply-To: <86a5knfs8j.fsf@gnu.org> X-Originating-IP: [54.39.251.57] X-ClientProxiedBy: DAG1EX1.mxpca1.local (172.16.2.1) To DAG2EX1.mxpca1.local (172.16.2.11) X-Ovh-Tracer-GUID: 3d25105a-0502-43d8-8bf2-ec1da507e68f X-Ovh-Tracer-Id: 9157788369840447130 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvdeitddgkedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghffffkgggtgfhisehtqhertddttdejnecuhfhrohhmpeftohgurhhighhoucfoohhrrghlvghsuceomhgvsehrohgurhhighhomhhorhgrlhgvshdrshhithgvqeenucggtffrrghtthgvrhhnpedvudelhfeileektdegfffhtefffedtvdevudelffdvgfetjedvveduieevieeutdenucffohhmrghinhepvghlrdhhvghrvgdprghrtghhihhvvgdrohhrghdptdigtddrshhtnecukfhppeduvdejrddtrddtrddupdehgedrfeelrddvhedurdehjedpudeltddrvdefgedrudejhedrudehgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepmhgvsehrohgurhhighhomhhorhgrlhgvshdrshhithgvpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpdhrtghp thhtohepjedutddvheesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhouddvpdhmohguvgepshhmthhpoh 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285483 Archived-At: Eli Zaretskii writes: > Do you have site-init files in your Emacs installation? Or some > early-init file? Maybe something other than the init file is > affecting this. Otherwise, I have no idea why this doesn't work for > you, as it does for me. load-history doesn't show other files in the ~/.config directory besides ~/.config/emacs/init.el. Here's how I found it out. I used the same configuration file. #+HEADER: :tangle ~/.config/emacs/init.el #+BEGIN_SRC elisp (set-fontset-font t 'brahmi nil) (set-fontset-font t 'egyptian nil) (set-fontset-font t 'ethiopic nil) (set-fontset-font t 'tagbanwa nil) (set-fontset-font t 'han nil) #+END_SRC When Emacs GUI opened, I visited the file =3D/tmp/a.txt=3D. Brahmi and Egyp= tian Hieroglyphs were shown as hexadecimal codes. Amharic and Tagbanwa and = Chinese were shown with other fonts. I used =3Ddescribe-char=3D to find out= which font those scripts were using. Amharic: ftcrhb:-GOOG-Noto Sans Ethiopic-regular-normal-normal-*-12-*-*-*-*= -0-iso10646-1 (#x2B) Tagbanwa: ftcrhb:-GOOG-Noto Sans Tagbanwa-regular-normal-normal-*-12-*-*-*-= *-0-iso10646-1 (#x12) Chinese: ftcrhb:-GOOG-Noto Sans CJK KR-regular-normal-normal-*-12-*-*-*-*-0= -iso10646-1 (#x2703) #+HEADER: :tangle /tmp/a.txt #+BEGIN_SRC text The following lines were retrieved from the HELLO buffer which is opened by calling view-hello-file in GNU Emacs 29.3. Brahmi (=F0=91=80=A9=F0=91=81=86=F0=91=80=AD=F0=91=80=B8=F0=91=80=B3=F0=91= =81=86=F0=91=80=AB=F0=91=80=BB) =F0=91=80=A6=F0=91=80=AB=F0=91=80=B2= =F0=91=81=86=F0=91=80=A2=F0=91=81=82 Egyptian Hieroglyphs (=F0=93=82=8B=F0=93=8F=A4=F0=93=88=96=F0=93=86=8E=F0= =93=85=93=E2=80=8C=F0=93=8F=8F=F0=93=8A=96) =F0=93=85=93=F0=93=8A=B5=F0=93= =8F=8F=F0=93=8A=AA, =F0=93=87=8D=F0=93=87=8B=F0=93=82=BB=F0=93=8D=98=F0=93= =87=8B Amharic (=E1=8A=A0=E1=88=9B=E1=88=AD=E1=8A=9B) =E1=88=A0=E1=88=8B=E1=88=9D Tagbanwa (=E1=9D=A6=E1=9D=AA=E1=9D=AF) =E1=9D=AB=E1=9D=A9=E1=9D=AC=E1=9D= =A5 =E1=9D=A3=E1=9D=AE=E1=9D=A7=E1=9D=AF Chinese (=E4=B8=AD=E6=96=87,=E6=99=AE=E9=80=9A=E8=AF=9D,=E6=B1=89=E8=AF=AD)= =E4=BD=A0=E5=A5=BD #+END_SRC I launched =3Demacs=3D and I pressed =3DC-h v load-history RET=3D. The cont= ent of the =3D*Help*=3D buffer can be found here: http://web.archive.org/we= b/20240520161841/http://0x0.st/XPww.txt . I searched =3D.config=3D inside t= he =3D*Help*=3D buffer and I only found one match: =3D/home/rodrigo/.config= /emacs/init.el=3D, so I don't think there are other configuration files tha= t are influencing this behavior. > Or maybe your default font supports those scripts, in which case Emacs > will use it regardless of the fontset setup? What happens if you > change the default font to something that doesn't support these scripts? I changed the default font to =3DCozette=3D. #+HEADER: :tangle ~/.config/emacs/init.el #+BEGIN_SRC elisp (add-to-list 'default-frame-alist '(font . "Cozette")) (set-fontset-font t 'brahmi nil) (set-fontset-font t 'egyptian nil) (set-fontset-font t 'ethiopic nil) (set-fontset-font t 'tagbanwa nil) (set-fontset-font t 'han nil) #+END_SRC When Emacs GUI opened, I visited the file =3D/tmp/a.txt=3D. Brahmi and Egyp= tian Hieroglyphs were shown as hexadecimal codes. Amharic and Tagbanwa and = Chinese were shown with other fonts. I used =3Ddescribe-char=3D to find out= which font those scripts were using. Amharic: ftcrhb:-GNU -Unifont Sample-regular-normal-normal-*-13-*-*-*-d-0-i= so10646-1 (#x1221) Tagbanwa: ftcrhb:-GNU -Unifont Sample-regular-normal-normal-*-13-*-*-*-d-0-= iso10646-1 (#x176C) Chinese: ftcrhb:-GNU -Unifont Sample-regular-normal-normal-*-13-*-*-*-d-0-i= so10646-1 (#x4F5F) Because Unifont was being used for those scripts, I decided to delete that font from my system just to see what happens. I removed =3Dunifont-15.1.05.bdf=3D from the directory =3D~/.fonts=3D and executed =3Dfc-cache -f=3D. I launched Emacs again and visited =3D/tmp/a.txt=3D. I u= sed =3Ddescribe-char=3D to find out the font that were using for those scripts. Amharic: ftcrhb:-GOOG-Noto Sans Ethiopic-regular-normal-normal-*-13-*-*-*-*= -0-iso10646-1 (#x2B) Tagbanwa: ftcrhb:-GOOG-Noto Sans Tagbanwa-regular-normal-normal-*-13-*-*-*-= *-0-iso10646-1 (#x12) Chinese: ftcrhb:-GOOG-Noto Sans CJK KR-regular-normal-normal-*-13-*-*-*-*-0= -iso10646-1 (#x2703) Note that these fonts were the same used as when I didn't change the default font through =3D(add-to-list 'default-frame-alist '(font . "Cozette= "))=3D.