all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Rodrigo Morales <me@rodrigomorales.site>
Cc: 70993@debbugs.gnu.org
Subject: bug#70993: set-fontset-font doesn't use specified font for some scripts
Date: Sat, 18 May 2024 11:05:24 +0300	[thread overview]
Message-ID: <86cypjfsu3.fsf@gnu.org> (raw)
In-Reply-To: <87mson8wzm.fsf@rodrigomorales.site> (message from Rodrigo Morales on Sat, 18 May 2024 01:17:33 -0500)

> From: Rodrigo Morales <me@rodrigomorales.site>
> CC: <70993@debbugs.gnu.org>
> Date: Sat, 18 May 2024 01:17:33 -0500
> 
> Eli Zaretskii <eliz@gnu.org> 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.





      reply	other threads:[~2024-05-18  8:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-17  3:30 bug#70993: set-fontset-font doesn't use specified font for some scripts Rodrigo Morales
2024-05-17  7:10 ` Eli Zaretskii
2024-05-17 14:57   ` Rodrigo Morales
2024-05-17 15:55     ` Eli Zaretskii
2024-05-18  6:17 ` Rodrigo Morales
2024-05-18  8:05   ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86cypjfsu3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=70993@debbugs.gnu.org \
    --cc=me@rodrigomorales.site \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.