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#71025: set-fontset-font doesn't show some scripts as glyphless characters Date: Mon, 20 May 2024 21:02:23 +0300 Message-ID: <864jas9xao.fsf@gnu.org> References: <87o7938xti.fsf@rodrigomorales.site> <86ed9zft79.fsf@gnu.org> <86a5knfs8j.fsf@gnu.org> <8734qca0oe.fsf@rodrigomorales.site> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8031"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71025@debbugs.gnu.org To: Rodrigo Morales Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 20 20:03:13 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 1s97Lr-0001kH-7t for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 May 2024 20:03:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s97Le-0001fP-6J; Mon, 20 May 2024 14:02:58 -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 1s97Ld-0001f1-6H for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 14:02:57 -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 1s97Lc-0006GF-UG for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 14:02:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s97Lh-0005Af-Kh for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 14:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 May 2024 18:03:01 +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.171622816319869 (code B ref 71025); Mon, 20 May 2024 18:03:01 +0000 Original-Received: (at 71025) by debbugs.gnu.org; 20 May 2024 18:02:43 +0000 Original-Received: from localhost ([127.0.0.1]:43977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s97LP-0005AP-19 for submit@debbugs.gnu.org; Mon, 20 May 2024 14:02:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s97LN-0005AJ-Lg for 71025@debbugs.gnu.org; Mon, 20 May 2024 14:02:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s97LB-00064T-It; Mon, 20 May 2024 14:02:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=sWb1iaY5HrVqYDVpbOowZmT1hnSc3Aa7BjxRjtZWkfI=; b=OYDRsyl9eoFugEWO+pnV LeeguZ3af7HNpNSO/Ohw7Mk95JgDoQASOnVZiW4cWwLlVFLmO07Dl+wle+CtluYtstHRBEMIo5uvH Fem2jSFMtmRpcwq5sZ6RfjrQJ9K2D3EFLoyvl84PzlSFAx1d1mSr8l7p8aiwiRlHUP0Mxr3hBaeXx wrZWOsf18+lJt6qOcl/dV6M3O3TxVOaw3RF1OoNFAW+rvOvR5yy+O0rwNLXFg0mNTNy1kw547hS07 DZjevmQ9Yg608I/KjPWYmGxVsKaNn82s/thP4X9JnQcN+3cbHta7bNQBrYsvkqdSxuG1pHIdy8oi8 yGXD9KhEUo5REw==; In-Reply-To: <8734qca0oe.fsf@rodrigomorales.site> (message from Rodrigo Morales on Mon, 20 May 2024 11:49:21 -0500) 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:285490 Archived-At: > From: Rodrigo Morales > CC: <71025@debbugs.gnu.org> > Date: Mon, 20 May 2024 11:49:21 -0500 > > 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 =/tmp/a.txt=. Brahmi and Egyptian Hieroglyphs were shown as hexadecimal codes. Amharic and Tagbanwa and Chinese were shown with other fonts. I used =describe-char= 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 (๐‘€ฉ๐‘†๐‘€ญ๐‘€ธ๐‘€ณ๐‘†๐‘€ซ๐‘€ป) ๐‘€ฆ๐‘€ซ๐‘€ฒ๐‘†๐‘€ข๐‘‚ > Egyptian Hieroglyphs (๐“‚‹๐“ค๐“ˆ–๐“†Ž๐“…“โ€Œ๐“๐“Š–) ๐“…“๐“Šต๐“๐“Šช, ๐“‡๐“‡‹๐“‚ป๐“˜๐“‡‹ > Amharic (แŠ แˆ›แˆญแŠ›) แˆ แˆ‹แˆ > Tagbanwa (แฆแชแฏ) แซแฉแฌแฅ แฃแฎแงแฏ > Chinese (ไธญๆ–‡,ๆ™ฎ้€š่ฏ,ๆฑ‰่ฏญ) ไฝ ๅฅฝ > #+END_SRC > > I launched =emacs= and I pressed =C-h v load-history RET=. The content of the =*Help*= buffer can be found here: http://web.archive.org/web/20240520161841/http://0x0.st/XPww.txt . I searched =.config= inside the =*Help*= buffer and I only found one match: =/home/rodrigo/.config/emacs/init.el=, so I don't think there are other configuration files that 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 =Cozette=. > > #+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 =/tmp/a.txt=. Brahmi and Egyptian Hieroglyphs were shown as hexadecimal codes. Amharic and Tagbanwa and Chinese were shown with other fonts. I used =describe-char= to find out which font those scripts were using. > > Amharic: ftcrhb:-GNU -Unifont Sample-regular-normal-normal-*-13-*-*-*-d-0-iso10646-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-iso10646-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 > =unifont-15.1.05.bdf= from the directory =~/.fonts= and executed > =fc-cache -f=. I launched Emacs again and visited =/tmp/a.txt=. I used > =describe-char= 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 =(add-to-list 'default-frame-alist '(font . "Cozette"))=. I can only say that I can reproduce none of these strange behaviors. I have no idea what happens on your system, sorry.