From: Alejandro Colomar <alx@kernel.org>
To: linux-man@vger.kernel.org
Cc: branden@debian.org, deri@chuzzlewit.myzen.co.uk
Subject: Re: man-pages PDF book: fonts
Date: Sat, 20 Apr 2024 14:06:07 +0200 [thread overview]
Message-ID: <ZiOvsLhqU2IxibuH@debian> (raw)
In-Reply-To: <47bb0480-0d74-4509-b55a-b460c460e843@SystematicSW.ab.ca>
[-- Attachment #1: Type: text/plain, Size: 4025 bytes --]
Hi Brian,
On Tue, Mar 26, 2024 at 12:10:00PM -0600, Brian Inglis wrote:
> On Sun, Mar 24, 2024 at 11:19:54PM -0500, G. Branden Robinson wrote:
> > At 2024-03-22T18:35:02+0100, Alejandro Colomar wrote:
>
> Hi Branden, Alex,
Sorry for answering so late. I've been very frustrated by not
understanding most of what I was being told. Now that I have something
working with the Tinos, and that I understand how it works, I feel able
to understand this email of yours.
> > > I see that Debian provides the Tinos font in some package:
> ...
> > > Can we similarly get the Unifont for zh_CN PDFs?
>
> You can check what you have installed using fontconfig utilities e.g.
> `fc-list :lang=zh` or Unicode points `fc-list :charset=code,beg-end,...` and
> disregarding other "complete" fallback fonts like Unifont,
> UnicodeBMPFallback, LastResort, I find I have DroidSansFallBack which I can
> investigate further as shown below.
>
> A condensed list of code point ranges can be shown on a single line with
> `fc-list -f, --format 'FORMAT'` below, but include the file name, as
> sometimes the font configuration matches fonts other than requested or
> expected.
>
> Fontconfig `fc-query file` shows the same information for font files (which
> need not be installed), as shown at bottom.
>
> The charset dump is in lines of 256 codes, 20 per word, in big-endian? order.
>
> Using option `fc-query -b` and avoiding `fc-list -v` skip the charset dump,
> or specifying the charset element shows all ranges on a single line!
>
> TeXlive otfinfo options allow selective dumping of info including -u,
> --unicode but appears only to handle the first 64K BMP U+0000..U+FFFF.
>
> Python package fonttools ttx can show info including cmap table as XML .ttx
> files, but defaults output to the font directory, so if using installed font
> paths, add `-d .` or `-o font.ttx` to avoid accidents if root!
>
> You can also view a font in the GUI `xfd -fa DroidSansFallback`: jump with
> the [+16] button, scroll with the [Next] button; these seem to skip missing
> code points, but the display shows boxes in missing positions in the
> displayed range.
>
> Tinos is a Google replacement for Windows Times New Roman, and seems to be
> part of the Google Noto collection of font packages, which includes
> "compatible" noto-cjk packages, and that/they should include those shown at:
>
> https://fonts.google.com/?query=chinese
>
> where you can browse each individually to access the "Get Font" then
> "Download all" [weights/variants] buttons.
>
> As Tinos is a serif style, Noto [NO TOfu] Serif Simplified Chinese may match
> the style and meet your needs.
>
> Of course, you then have to groff_font-ize the downloaded and installed font.
Hmmm, and that font comes in the same texlive-fonts-extra and
texlive-fonts-extra-links Debian packages, which is nice. That'll make
it easier to get working than the Unifont, with which I'm having
problems at the moment.
I'll get the Noto font working in a moment.
I still think I may need the Unifont (or something else) for a few rare
characters that have been giving me warnings, but this will definitely
help.
I'll also later report the problems I get with Unifont, since I suppose
I'm doing something wrong.
>
> > As I understand it, GNU Unifont is a low-resolution bitmap font intended
> > for terminal emulators.[2] I expect it would look offensively bad when
> > typeset.
>
> Unifoundry.com GNU Unifont by Paul Hardy, Roman Czyborra, et.al. is an
> OpenType font, without combination form glyphs, redrawn based on bitmaps and
> not too bad, compared to e.g. DroidSansFallback which has a lot of tofu,
> especially for those of us who do not know what the glyphs should look like,
> and just want fallbacks to display everything without mojibake,
> UnicodeBMPFallback hex, LastResort range glyphs, or .notdef tofu.
Have a lovely day!
Alex
--
<https://www.alejandro-colomar.es/>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2024-04-20 12:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-22 17:35 man-pages PDF book: fonts Alejandro Colomar
2024-03-25 4:19 ` G. Branden Robinson
2024-03-25 11:40 ` Alejandro Colomar
2024-03-25 11:48 ` Alejandro Colomar
2024-03-25 12:07 ` Alejandro Colomar
2024-03-25 18:36 ` James Cloos
2024-03-26 18:10 ` Brian Inglis
2024-04-20 12:06 ` Alejandro Colomar [this message]
2024-04-20 13:00 ` Alejandro Colomar
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=ZiOvsLhqU2IxibuH@debian \
--to=alx@kernel.org \
--cc=branden@debian.org \
--cc=deri@chuzzlewit.myzen.co.uk \
--cc=linux-man@vger.kernel.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox