From: Po Lu <luangruo@yahoo.com>
To: pipcet@protonmail.com
Cc: Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>,
Eli Zaretskii <eliz@gnu.org>,
emacs-devel@gnu.org
Subject: Re: master bf0aeaa0d7a: Re-enable displaying `han' characters on Android
Date: Sat, 03 Aug 2024 21:31:44 +0800 [thread overview]
Message-ID: <87plqppwan.fsf@yahoo.com> (raw)
In-Reply-To: <87wmkxwxzu.fsf@protonmail.com> (pipcet@protonmail.com's message of "Sat, 03 Aug 2024 13:13:11 +0000")
pipcet@protonmail.com writes:
> Thanks again! I really appreciate that there's a second set of eyeballs
> going over these before pushing to master, let alone emacs-30 :-)
>
> The next issue on my LineageOS (an Android variant) phone is that the
> Noto CJK fonts have an "OTTO" header, not a "true"/00010000 one, so
> they're not enumerated at all. At first glance, this doesn't appear to
> be a LineageOS quirk; downloads available elsewhere also have the OTTO
> header.
>
> My understanding of the source code is we currently don't support OTTO
> fonts at all, and my experiment in forcing the header to be recognized
> seems to agree with me there: I get tofu even for ASCII characters,
> which FontForge indicates are present in the font.
Yes, because OTTO fonts are actually a completely distinct format from
TTF, with a unique bytecode language for constructing glyph outlines.
See:
https://learn.microsoft.com/en-us/typography/opentype/spec/glyphformatcomparison
> I have (lossily!) converted Noto Sans CJK SC to TTF format (with a
> "glyf" table), and installed that in
> /data/data/org.gnu.emacs/files/fonts, customized the "region" face to
> use that font, and now I can see some Han characters when I select them,
> but they turn into tofu when using the default face. (It's possible this
> is due to the experiment I've described above and goes away when I
> revert it...)
>
> Of course, Noto CJK doesn't provide U+20000 (it does provide U+2000B),
> so all this is a bit off-topic.
That's quite a circutous means of obtaining a TTF version of the Noto
CJK fonts. These fonts are compiled into both formats from a number of
common source files, and there is an index of the options available at:
https://github.com/notofonts/noto-cjk/tree/main/Serif
an amalgamation of all CJK variants is:
https://github.com/googlefonts/noto-cjk/raw/main/Serif/Variable/OTC/NotoSerifCJK-VF.ttf.ttc
but since it is enormous, I suggest installing only those regional
variants which cover the scripts you require.
next prev parent reply other threads:[~2024-08-03 13:31 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-31 15:45 master bf0aeaa0d7a: Re-enable displaying `han' characters on Android Eli Zaretskii
2024-08-01 0:07 ` Po Lu
2024-08-01 0:33 ` Po Lu
2024-08-01 5:52 ` Eli Zaretskii
2024-08-01 7:55 ` Po Lu
2024-08-01 8:52 ` Eli Zaretskii
2024-08-01 9:47 ` Po Lu
2024-08-01 9:56 ` Eli Zaretskii
2024-08-01 10:13 ` Po Lu
2024-08-01 10:19 ` Eli Zaretskii
2024-08-01 21:17 ` Dmitry Gutov
2024-08-01 5:32 ` Eli Zaretskii
2024-08-01 8:16 ` Po Lu
2024-08-01 9:49 ` Eli Zaretskii
2024-08-01 10:30 ` Po Lu
2024-08-01 10:35 ` Eli Zaretskii
2024-08-02 10:52 ` Benjamin Riefenstahl
2024-08-02 12:29 ` Eli Zaretskii
2024-08-02 12:55 ` Benjamin Riefenstahl
2024-08-02 13:13 ` Benjamin Riefenstahl
2024-08-03 7:12 ` pipcet
2024-08-03 8:52 ` Po Lu
2024-08-03 9:21 ` pipcet
2024-08-03 9:33 ` Po Lu
2024-08-03 13:13 ` pipcet
2024-08-03 13:31 ` Po Lu [this message]
2024-08-03 14:31 ` pipcet
2024-08-03 14:54 ` Po Lu
2024-08-07 17:52 ` Pip Cet
2024-08-08 0:10 ` Po Lu
2024-08-09 12:33 ` Pip Cet
2024-08-09 13:10 ` Po Lu
2024-08-03 15:15 ` Eli Zaretskii
2024-08-02 10:44 ` Benjamin Riefenstahl
2024-08-02 11:42 ` Po Lu
2024-08-01 7:57 ` Andrea Corallo
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=87plqppwan.fsf@yahoo.com \
--to=luangruo@yahoo.com \
--cc=b.riefenstahl@turtle-trading.net \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=pipcet@protonmail.com \
/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.