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#70993: set-fontset-font doesn't use specified font for some scripts Date: Sat, 18 May 2024 11:05:24 +0300 Message-ID: <86cypjfsu3.fsf@gnu.org> References: <87mson8wzm.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="28397"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70993@debbugs.gnu.org To: Rodrigo Morales Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 18 10:06:12 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 1s8F52-0007Cg-Eu for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 May 2024 10:06:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8F4p-0004aT-R5; Sat, 18 May 2024 04:05:59 -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 1s8F4p-0004aF-00 for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 04:05:59 -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 1s8F4o-0006To-NM for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 04:05:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8F4r-0007GG-St for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 04:06: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: Sat, 18 May 2024 08:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70993 X-GNU-PR-Package: emacs Original-Received: via spool by 70993-submit@debbugs.gnu.org id=B70993.171601954227900 (code B ref 70993); Sat, 18 May 2024 08:06:01 +0000 Original-Received: (at 70993) by debbugs.gnu.org; 18 May 2024 08:05:42 +0000 Original-Received: from localhost ([127.0.0.1]:60165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8F4X-0007Fw-UZ for submit@debbugs.gnu.org; Sat, 18 May 2024 04:05:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8F4V-0007Fq-F0 for 70993@debbugs.gnu.org; Sat, 18 May 2024 04:05:40 -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 1s8F4L-0006MB-G0; Sat, 18 May 2024 04:05: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=eFo2ZosqsKuxDh2khDGwQgzyIFwfpKmzmBFrwQ7Y/5w=; b=UdY+2AV2asaArlr8pOFh fzX7n0GnXK9fICMmniyqy5LPzI7N1ohVwK4fDESc3py99E4/xmL2zDf/FZcL88PcOd+XMGRDx16vE tqZlJOIAWK7CBbZ0r2ESDxoUO3zQdqHCqoE8U2z+Cg+X+GXyilxve3ylzkIzX+WVAWWBVN7F+p5FF RZB1kcPjn8E7ZstsxAWGWMVF5ztMLL/Z4oMnMHZafwtOO4xlxhvjezvN/z0hbONpI41csE210pQOZ ZtjjfqnRtII0E2lJaUlxHXarupxocxTgn30hhLEiW8N5xcw9yokIiv7kLjw28ADXq3YqEkJbzz9J5 XIGcixFjFhoeaA==; In-Reply-To: <87mson8wzm.fsf@rodrigomorales.site> (message from Rodrigo Morales on Sat, 18 May 2024 01:17:33 -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:285285 Archived-At: > From: Rodrigo Morales > CC: <70993@debbugs.gnu.org> > Date: Sat, 18 May 2024 01:17:33 -0500 > > Eli Zaretskii writes: > > > In any case, it sounds like Emacs rejects the Cozette font for some > > scripts. Why that happens, I don't know, sorry. Can you set font-log > > to nil before you visit your a.txt file, and then post the value of > > font-log after the file is displayed? That could perhaps tell us > > something about the cause of this behavior. > > I performed two experiments. I emptied ~/.config/emacs/init.el and > inserted the sexps showed in the first code block below. The content of > =/tmp/a.txt= is shown in the second code block below. > > #+HEADER: :tangle ~/.config/emacs/init.el > #+BEGIN_SRC elisp > (set-fontset-font t 'brahmi (font-spec :family "Cozette")) > (set-fontset-font t 'egyptian (font-spec :family "Cozette")) > (set-fontset-font t 'ethiopic (font-spec :family "Cozette")) > (set-fontset-font t 'tagbanwa (font-spec :family "Cozette")) > (set-fontset-font t 'han (font-spec :family "Cozette")) > #+END_SRC > > #+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 > > 1. I launched =emacs= without the =-Q= flag so that > =~/.config/emacs/init.el= is read. Then, I evaluated =(setq > font-log nil)=. Then, I evaluated =(find-file > "/tmp/a.txt")=. Brahmi and Egyptian Hieroglyphs were shown as > hexadecimal codes inside boxes. Amharic, Tagbanwa and Chinese > characters were shown using other fonts. Then, I evaluated > =(describe-variable 'font-log)=. The content of the =*Help*= buffer > can be found here: > http://web.archive.org/web/20240518060947/http://0x0.st/XPqh.txt Did you also make Cozette the default font? If not, why not? I thought your intent was to use the same font for all the characters, including ASCII? Emacs will use the default font for any non-ASCII characters that the default font supports, so if you want all of them to use Cozette, you should start Emacs as "emacs -fn Cozette", or use add-to-list to customize the 'font' parameter in default-frame-alist.