mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-10 13:04:42 +08:00
I had a setup like this on one of my machines, now that I'm looking at the detail of fontconfig in a local branch I discovered that there were certain problems with the example: 1. I'm in an en locale, for pages that do not specify a locale (or in vim/view, e.g. in mutt) the Japanese fonts were being preferred. 2. Fontconfig does not consider UMing suitable for zh-sc so it was hardly ever used - and it does not really belong in local.conf. 3, Really prefer a Japanese font for Sans Serif and monospace, but no point listing two of them. 3. Comment where WenQuanYi Zen Hei is regarded as adequate and therefore do not include it in these preferences, since it will be picked up after them.
775 lines
34 KiB
XML
775 lines
34 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
]>
|
|
|
|
<sect1 id="TTF-and-OTF-fonts">
|
|
<?dbhtml filename="TTF-and-OTF-fonts.html"?>
|
|
|
|
|
|
<title>TTF and OTF fonts</title>
|
|
|
|
<indexterm zone="TTF-and-OTF-fonts">
|
|
<primary sortas="a-TTF-and-OTF-fonts">TTF and OTF fonts</primary>
|
|
</indexterm>
|
|
|
|
<!-- although indexterm entries can be added for the individual fonts, and
|
|
will link to the correct part of the page, that seems unnecessary unless
|
|
the font is linked from other pages -->
|
|
|
|
<sect2 role="configuration">
|
|
<title>About TTF and OTF fonts</title>
|
|
|
|
<para>
|
|
Originally, Xorg provided only bitmap fonts. Later, some scalable
|
|
Type1 fonts were added, but the desktop world moved on to using TrueType
|
|
and Open Type fonts. To support these, Xorg uses Xft, the X FreeType
|
|
interface library.
|
|
</para>
|
|
|
|
<para>
|
|
These fonts can provide hints, which <application>fontconfig</application>
|
|
uses to adjust them for maximum readability on computer monitors. On Linux
|
|
you should always use the hinted versions if they are available (in
|
|
general the Latin, Cyrillic and Greek alphabets can use hints, most other
|
|
writing systems do not use hinting).
|
|
</para>
|
|
|
|
<para>
|
|
A few fonts are provided as collections (TTC or OTC) where font data
|
|
is shared between different fonts, which saves disk space. These should
|
|
be treated in exactly the same way as individual TTF or OTF files.
|
|
</para>
|
|
|
|
<para>
|
|
If a font provides both TTF and OTF forms, you should prefer the OTF form
|
|
in Linux, as it may provide more features for programs which know how to
|
|
use them (such as xelatex).
|
|
</para>
|
|
|
|
<para>
|
|
A font may have multiple variations. For example, Noto Sans
|
|
has 9 weights (ExtraLight, Light, Thin, Normal, Medium, SemiBold,
|
|
Bold, ExtraBold, and Black) and 2 styles (Regular and Italic), thus
|
|
18 variations in total. Normally each variation is provided as a
|
|
separate TTF or OTF file. For full coverage you need to install
|
|
all these TTF or OTF files. Even if you are low on disk space, you
|
|
should still install two weights (Regular and Bold) by two styles
|
|
(Normal and Italic) if the font has these variations. Some fonts
|
|
do not have Italic style (for example most CJK fonts and some
|
|
monospace fonts), and some fonts only have one variation (for example
|
|
Noto Sans Math, it only provides the glyph of some mathematic
|
|
symbols).
|
|
</para>
|
|
|
|
<para>
|
|
Some fonts are also available as <emphasis>variable</emphasis> font
|
|
files. Unlike a normal font file which only contains one variation,
|
|
a variable font file contains infinite variations. Each variation
|
|
can be defined by the application using this font by assigning
|
|
number(s) to one or more variables. There are also pre-defined
|
|
<emphasis>named instances</emphasis> analogous to the traditional
|
|
variations. For example, with the variable version of Noto Sans, the
|
|
weight variable can be assigned any number not less than 100 and not
|
|
greater than 900, and 9 named instances are pre-defined: ExtraLight
|
|
for weight=100, Regular for weight=400, Bold for weight=700, etc. So
|
|
once a variable font file for Noto Sans is installed, all the
|
|
9 named instances (or <quote>variations</quote>) are available. Note
|
|
that the slope is not defined as a variable in the variable version
|
|
of Noto Sans, so Regular and Italic are still traditional variations
|
|
and a separate variable font file is needed for the Italic variation.
|
|
</para>
|
|
|
|
<para>
|
|
A variable font file is obviously more flexible than the normal
|
|
(static) font files. It's extremely useful for fine tuning the
|
|
font for Web pages or publications. And, the size of a variable font
|
|
file is usually significantly smaller than the total size of several
|
|
static font files for multiple variations. For example, the variable
|
|
font file for Noto Sans SC is only 11M, while the total size of 9
|
|
static font files for Noto Sans SC is 91M. But you must make sure
|
|
your applications really support variable fonts before installing one.
|
|
For example, <command>lualatex</command> supports variable font but
|
|
<command>xelatex</command> does not. So if you want to use a font for
|
|
an article and use <command>xelatex</command> for typesetting, you
|
|
must not install the variable font files.
|
|
</para>
|
|
|
|
<para>
|
|
For information about variable fonts, please see <ulink
|
|
url="https://fonts.google.com/knowledge/introducing_type/introducing_variable_fonts/">
|
|
Variable Fonts</ulink>.
|
|
</para>
|
|
|
|
<para>
|
|
For some scripts, <application>Pango</application> is required to
|
|
render things correctly, either by selecting different glyph forms, or by
|
|
combining glyphs - in both cases, according to the context. This applies
|
|
particularly to Arabic and Indic scripts.
|
|
</para>
|
|
|
|
<para>
|
|
Standard scalable fonts that come with <application>X</application>
|
|
provide very poor Unicode coverage. You may notice in applications that
|
|
use <application>Xft</application> that some characters appear as a box
|
|
with four binary digits inside. In this case, a font with the
|
|
required glyphs has not been found. Other times, applications that
|
|
don't use other font families by default and don't accept substitutions
|
|
from <application>Fontconfig</application> will display blank lines when
|
|
the default font doesn't cover the orthography of the user's language.
|
|
</para>
|
|
|
|
<para>
|
|
The fonts available to a program are those which were present when
|
|
it was started, so if you add an extra font and wish to use it in a program
|
|
which is currently running, then you will have to close and restart that
|
|
program.
|
|
</para>
|
|
|
|
<para>
|
|
Some people are happy to have dozens, or even hundreds, of font files
|
|
available, but if you ever wish to select a specific font in a desktop
|
|
application (for example in a word processor) then scrolling through a lot of
|
|
fonts to find the right one is slow and awkward - fewer is better. So, for
|
|
some font packages you might decide to install only one of the fonts - but
|
|
nevertheless install the different variants (italic, bold, etc) as these are
|
|
all variations for the same font name.
|
|
</para>
|
|
|
|
<para>
|
|
In the past, everybody recommended running <command>fc-cache</command>
|
|
as the &root; user after installing or removing fonts, but this is not
|
|
necessary anymore on Linux, <application>fontconfig</application> will do
|
|
it automatically if needed as well as if the font caches are more than 30
|
|
seconds old. However, if you add a font and want to use it immediately,
|
|
you can run that command as a normal user.
|
|
</para>
|
|
|
|
<para>
|
|
There are several references below to CJK characters. This stands for
|
|
Chinese, Japanese and Korean, although modern Korean is now almost all
|
|
written using the phonetic Hangul glyphs (it used to sometimes use Hanja
|
|
glyphs which are similar to Chinese and Japanese). Unicode decided to go
|
|
for <ulink
|
|
url="https://en.wikipedia.org/wiki/Han_unification">Han Unification</ulink>
|
|
and to map some Chinese and Japanese glyphs to the same codepoints. This
|
|
was very unpopular in Japan, and the result is that different fonts will
|
|
render some codepoints in quite different shapes. In addition, Simplified
|
|
Chinese will sometimes use the same codepoint as Traditional Chinese but
|
|
will show it differently, somewhat analogous to the different shapes used
|
|
for the letters 'a' and 'g' in English (single-storey and two-storey),
|
|
except that in a language context one will look "wrong" rather than just
|
|
"different".
|
|
</para>
|
|
|
|
<para>
|
|
Unlike most other packages in this book, the BLFS editors do not
|
|
monitor the versions of the fonts on this page - once a font is good enough
|
|
for general use, the typical additions in a new version are minor (e.g. new
|
|
currency symbols, or glyphs not for a modern language, such as emojis or
|
|
playing cards). Therefore, none of these fonts show version or md5
|
|
information.
|
|
</para>
|
|
|
|
<para>
|
|
The list below will not provide complete Unicode coverage.
|
|
Unicode is updated every year, and most additions are now for historic
|
|
writing systems. For almost-complete coverage you can install <xref
|
|
linkend="noto-fonts"/> (about 180 fonts when last checked) but that
|
|
number of fonts makes it <emphasis>much</emphasis> less convenient to
|
|
select a specific font in a document, and most people will regard many
|
|
of them as a waste of space. We used to recommend the <ulink
|
|
url="https://unifont.org/fontguide/">Unicode Font Guide</ulink>, but that
|
|
has not been updated since 2008 and many of its links are dead.
|
|
</para>
|
|
|
|
<para>
|
|
Rendered examples of most of these fonts, and many others, with
|
|
details of what languages they cover, some examples of latin fonts with
|
|
the same metrics (listed as "Substitute latin fonts") and various files
|
|
of dummy text to compare fonts of similar types, can be found at this
|
|
<ulink url="http://zarniwhoop.uk/ttf-otf-notes.html#examples">
|
|
font comparison</ulink> page. That site also covers other current
|
|
writing systems.
|
|
</para>
|
|
|
|
<para>
|
|
Fonts are often supplied in zip files, requiring <xref linkend="unzip"/>
|
|
to list and extract them, but even if the current release is a tarball,
|
|
you should still check to see if it will create a directory (scattering
|
|
the contents of a zipfile or tarball across the current directory can be
|
|
very messy, and a few fonts create __MACOSX/ directories). In addition,
|
|
many fonts are supplied with permissions which do not let 'other' users
|
|
read them - if a font is to be installed for system-wide use, any
|
|
directories must be mode 755 and all the files mode 644, so you need to
|
|
change them if the permissions are different. If you forget, the root
|
|
user may be able to see a particular font in <command>fc-list</command>,
|
|
but a normal user will not be able to use them.
|
|
</para>
|
|
|
|
<para>
|
|
As a font installation example, consider the installation of the
|
|
<xref linkend="dejavu-fonts"/>. In this particular package, the TTF files
|
|
are in a subdirectory. From the unpacked source directory, run the
|
|
following commands as the &root; user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>install -v -d -m755 /usr/share/fonts/dejavu &&
|
|
install -v -m644 ttf/*.ttf /usr/share/fonts/dejavu &&
|
|
fc-cache -v /usr/share/fonts/dejavu</userinput></screen>
|
|
|
|
<para>
|
|
If you wish, you can also install any licenses or other documentation,
|
|
either alongside the font or in a corresponding directory under
|
|
<filename class="directory">/usr/share/doc/</filename>.
|
|
</para>
|
|
|
|
<para>
|
|
A few fonts ship with source as well as the completed TTF or OTF
|
|
file(s). Unless you intend to modify the font, and have the correct tools
|
|
(sometimes <xref linkend="fontforge"/>, but often commercial tools), the
|
|
source will provide no benefit, so do not install it. One or two fonts even
|
|
ship with Web Open Font Format (WOFF) files - this is useful if you run a
|
|
webserver and want to use that font on your website, but not useful for
|
|
a desktop system.
|
|
</para>
|
|
|
|
<para>
|
|
To provide greater Unicode coverage, you should install some of the
|
|
following fonts, depending on what websites and languages you want to
|
|
read. The next part of this page details some fonts which cover at least
|
|
Latin alphabets, and the final part deals with some CJK issues.
|
|
</para>
|
|
|
|
<note>
|
|
<para>
|
|
Installation of the <xref
|
|
linkend="dejavu-fonts"/> is strongly recommended.
|
|
</para>
|
|
</note>
|
|
|
|
<!-- fonts covering at least latin languages, order alphabetically
|
|
NB the xreflabel in the bridgehead is used in any link names, the
|
|
associated text is embiggened for the heading, the text for the
|
|
sortas appears as the key in the longindex -->
|
|
|
|
<bridgehead renderas="sect3" id="Caladea"
|
|
xreflabel="Caladea">Caladea</bridgehead>
|
|
|
|
<para>
|
|
<ulink url="https://fonts.google.com/specimen/Caladea">Caladea</ulink>
|
|
(created as a Chrome OS extra font)
|
|
is metrically compatible with MS Cambria and can be used if you
|
|
have to edit a document which somebody started in Microsoft Office using
|
|
Cambria.
|
|
</para>
|
|
|
|
<bridgehead renderas="sect3" id="cantarell-fonts"
|
|
xreflabel="Cantarell fonts">Cantarell fonts</bridgehead>
|
|
|
|
<indexterm zone="TTF-and-OTF-fonts cantarell-fonts">
|
|
<primary sortas="a-cantarell-fonts">Cantarell fonts</primary>
|
|
</indexterm>
|
|
|
|
<para>
|
|
<ulink url="https://fonts.google.com/specimen/Cantarell">Cantarell fonts</ulink>
|
|
– The Cantarell typeface family provides a contemporary Humanist
|
|
Sans Serif. It is particularly optimised for legibility at small sizes
|
|
and is the preferred font family for the
|
|
<application>GNOME</application> user interface.
|
|
</para>
|
|
|
|
<bridgehead renderas="sect3" id="Carlito"
|
|
xreflabel="Carlito">Carlito</bridgehead>
|
|
|
|
<para>
|
|
<ulink url=
|
|
"https://github.com/googlefonts/carlito">Carlito</ulink>
|
|
(created as another Chrome OS extra font)
|
|
is metrically compatible with MS Calibri and
|
|
can be used if you have to edit a document which somebody started in
|
|
Microsoft Office using Calibri.
|
|
</para>
|
|
|
|
<bridgehead renderas="sect3" id="dejavu-fonts"
|
|
xreflabel="Dejavu fonts">DejaVu fonts</bridgehead>
|
|
|
|
<indexterm zone="TTF-and-OTF-fonts dejavu-fonts">
|
|
<primary sortas="a-dejavu-fonts">DejaVu fonts</primary>
|
|
</indexterm>
|
|
|
|
<para>
|
|
<ulink
|
|
url="https://sourceforge.net/projects/dejavu/files/dejavu/">DejaVu
|
|
fonts</ulink> – These fonts are an extension of, and replacement
|
|
for, the Bitstream Vera fonts and provide Latin-based scripts with
|
|
accents and punctuation such as "smart-quotes" and variant spacing
|
|
characters, as well as Cyrillic, Greek, Arabic, Hebrew, Armenian,
|
|
Georgian and some other glyphs. In the absence of the Bitstream Vera
|
|
fonts (which had much less coverage), these are the default fallback
|
|
fonts.
|
|
</para>
|
|
|
|
<bridgehead renderas="sect3" id="freefont"
|
|
xreflabel="freefont">GNU FreeFont</bridgehead>
|
|
|
|
<para>
|
|
<ulink url="https://ftpmirror.gnu.org/gnu/freefont/">GNU FreeFont</ulink>
|
|
– This set of fonts covers many non-CJK characters, in
|
|
particular some of the variants of Latin and Cyrillic letters used in
|
|
minority languages, but the glyphs are comparatively small (unlike DejaVu
|
|
fonts which are comparatively large) and rather light weight ("less black"
|
|
when black on white is used) which means that in some contexts such as
|
|
terminals they are not visually pleasing, for example when most other
|
|
glyphs are provided by another font. On the other hand, some fonts used
|
|
primarily for printed output, and many CJK fonts, are also light weight.
|
|
</para>
|
|
|
|
<bridgehead renderas="sect3" id="Gelasio"
|
|
xreflabel="Gelasio">Gelasio</bridgehead>
|
|
|
|
<para>
|
|
<ulink url="https://fontlibrary.org/en/font/gelasio">Gelasio</ulink> is
|
|
metrically compatible with MS Georgia and
|
|
<application>fontconfig</application> will use it if MS Georgia is
|
|
requested but is not installed.
|
|
</para>
|
|
|
|
<bridgehead renderas="sect3" id="liberation-fonts"
|
|
xreflabel="Liberation fonts">Liberation fonts</bridgehead>
|
|
|
|
<indexterm zone="TTF-and-OTF-fonts liberation-fonts">
|
|
<primary sortas="a-liberation-fonts">Liberation fonts</primary>
|
|
</indexterm>
|
|
|
|
<para>
|
|
The <ulink url="https://github.com/liberationfonts/"> Liberation
|
|
fonts</ulink> provide libre substitutes for Arial, Courier New, and Times
|
|
New Roman. <application>Fontconfig</application> will use them as
|
|
substitutes for those fonts, and also for the similar Helvetica, Courier,
|
|
and Times Roman, though for these it can prefer a different font (see
|
|
the examples in the 'Substitutes' PDFs at <ulink
|
|
url="http://zarniwhoop.uk/files/PDF-substitutes/">zarniwhoop.uk.)</ulink>
|
|
</para>
|
|
|
|
<para>
|
|
Many people will find the Liberation fonts useful for pages where one of
|
|
those fonts is requested.
|
|
</para>
|
|
|
|
<bridgehead renderas="sect3" id="corefonts"
|
|
xreflabel="corefonts">Microsoft Core Fonts</bridgehead>
|
|
|
|
<para>
|
|
The <ulink url="https://corefonts.sourceforge.net/">Microsoft Core
|
|
Fonts</ulink> date from 2002. They were supplied with old versions of
|
|
Microsoft Windows and were apparently made available for general use.
|
|
You can extract them from the '.exe' files using
|
|
<application>bsd-tar</application> from <xref linkend="libarchive"/>.
|
|
Make sure that you read the license before using them. At one time some
|
|
of these fonts (particularly Arial, Times New Roman, and to a lesser
|
|
extent Courier New) were widely used on web pages. The full set
|
|
contains Andale Mono, Arial, Arial Black, Comic Sans MS, Courier
|
|
New, Georgia, Impact, Times New Roman, Trebuchet MS, Verdana and
|
|
Webdings.
|
|
</para>
|
|
|
|
<para>
|
|
Please note that if you only want to use a font with the same metrics
|
|
(character size, etc) as Arial, Courier New, or Times New Roman you can
|
|
use the libre Liberation Fonts (above), and similarly you can replace
|
|
Georgia with Gelasio.
|
|
</para>
|
|
|
|
<para>
|
|
Although many old posts recommend installing these fonts for
|
|
output which looks better, there are more recent posts that these are
|
|
'ugly' or 'broken'. One suggestion is that they do not support anti-aliasing.
|
|
</para>
|
|
|
|
<para>
|
|
The newer fonts which Microsoft made their defaults in later releases of
|
|
MS Windows or MS Office (Calibri and Cambria) have never been freely
|
|
available. However, if you do not have them installed you can find metric
|
|
equivalents (Carlito and Caladea) above.
|
|
</para>
|
|
|
|
<bridgehead renderas="sect3" id="noto-fonts"
|
|
xreflabel="Noto fonts">Noto fonts</bridgehead>
|
|
|
|
<indexterm zone="TTF-and-OTF-fonts noto-fonts">
|
|
<primary sortas="a-noto-fonts">Noto fonts</primary>
|
|
</indexterm>
|
|
|
|
<para>
|
|
The <ulink
|
|
url="https://fonts.google.com/noto/">Noto fonts</ulink> ('No Tofu', i.e.
|
|
avoiding boxes with dots [hex digits] when a glyph cannot be found) are a
|
|
set of fonts which aim to cover <emphasis>every glyph in Unicode, no
|
|
matter how obscure</emphasis>. Noto Sans is the preferred font for KDE
|
|
Plasma and applications, except for monospace fonts where <ulink
|
|
url="https://github.com/source-foundry/Hack">Hack</ulink> is preferred.
|
|
</para>
|
|
|
|
<para>
|
|
People using languages written in Latin, Greek or Cyrillic alphabets only
|
|
need to install Noto Sans itself, and perhaps Noto Sans Symbols for
|
|
currency symbols. For more details on the organization of Noto fonts see <ulink
|
|
url="https://fonts.google.com/noto/use#how-are-noto-fonts-organized/">how
|
|
are noto fonts organized</ulink>. There are also separate fonts for every
|
|
other current writing system, but these will also require Noto Sans
|
|
(or Noto Serif) and perhaps Noto Symbols.
|
|
</para>
|
|
|
|
<para>
|
|
It may be easier to download a specific Noto font by going to <ulink
|
|
url="https://fonts.google.com/specimen/Noto+Sans">Noto Sans</ulink>
|
|
and changing the font name as appropriate, with '+' between each word,
|
|
e.g. 'Noto+Kufi+Arabic', 'Noto+Serif+Georgian' or whatever, then clicking
|
|
on 'Download family'.
|
|
</para>
|
|
|
|
<para>
|
|
However, you should be aware that <application>fontconfig</application>
|
|
knows nothing about Noto fonts. The 'Noto Sans Something' fonts are each
|
|
treated as separate fonts (and for Arabic there is not a specific Sans
|
|
name), so if you have other fonts installed then the choice of which font
|
|
to use for missing glyphs where 'Noto Sans' is specified will be random,
|
|
except that Sans fonts will be preferred over <emphasis>known</emphasis>
|
|
Serif and Monospace fonts because Sans is the fallback for unknown fonts.
|
|
</para>
|
|
|
|
<!--<bridgehead renderas="sect3" id="oxygen-fonts"
|
|
xreflabel="Oxygen fonts">Oxygen fonts</bridgehead>
|
|
|
|
<indexterm zone="TTF-and-OTF-fonts oxygen-fonts">
|
|
<primary sortas="a-oxygen-fonts">Oxygen fonts</primary>
|
|
</indexterm>
|
|
|
|
<para>
|
|
When KDE Frameworks 5 was first released, it used the <ulink url=
|
|
"https://fonts.google.com/specimen/Oxygen">Oxygen Sans</ulink> and
|
|
<ulink url=
|
|
"https://fonts.google.com/specimen/Oxygen+Mono">OxygenMono</ulink> fonts
|
|
which were designed for integrated use with the KDE desktop. Those fonts
|
|
are not actively maintained anymore, so KDE made a decision to switch to
|
|
<xref linkend="noto-fonts"/>, but for the moment they are still
|
|
<emphasis>required</emphasis> by 'startkde'.
|
|
</para>-->
|
|
|
|
<bridgehead renderas="sect3" id="source-code-pro"
|
|
xreflabel="Source Code Pro">Source Code Pro</bridgehead>
|
|
|
|
<indexterm zone="TTF-and-OTF-fonts source-code-pro">
|
|
<primary sortas="a-source-code-pro">Source Code Pro</primary>
|
|
</indexterm>
|
|
|
|
<para>
|
|
This set of fonts from Adobe (seven different weights) includes what is
|
|
now the preferred monospace font for those applications which use <xref
|
|
linkend="gsettings-desktop-schemas"/>. The github release <ulink url=
|
|
"https://github.com/adobe-fonts/source-code-pro.git#release">
|
|
source-code-pro</ulink>
|
|
contains OTF (preferred) and TTF as well as the source and WOFF fonts.
|
|
</para>
|
|
|
|
<para>
|
|
To use this in terminals, you probably will only want the Regular font.
|
|
</para>
|
|
|
|
<para>
|
|
There is also an older TTF version of this available from <ulink url=
|
|
"https://fonts.google.com/specimen/Source+Code+Pro?selection.family=Source+Code+Pro">
|
|
Google fonts</ulink> but that has very limited coverage (adequate for most
|
|
European languages using a Latin alphabet).
|
|
</para>
|
|
|
|
<bridgehead renderas="sect3" id="CJKfonts"
|
|
xreflabel="CJKfonts">CJK fonts:</bridgehead>
|
|
|
|
<para>
|
|
As indicated earlier, usage of a combination of Chinese, Japanese
|
|
and Korean characters can be tricky - each font only covers a subset
|
|
of the available codepoints, the preferred shapes of the glyphs can differ
|
|
between the languages, and many of the CJK fonts do not actually support
|
|
modern Korean.
|
|
</para>
|
|
|
|
<para>
|
|
Also, <application>fontconfig</application> prefers Chinese to Japanese
|
|
by default. Tuning that is covered at <xref linkend="prefer-chosen-CJK-fonts"/>.
|
|
</para>
|
|
|
|
<para>
|
|
Although Unicode has been extended to allow a very large number of CJK
|
|
codepoints, those outside the Base Plane (greater than U+0xFFFF) are not
|
|
commonly used in Mandarin (the normal form of written Chinese, whether
|
|
Simplified (Mainland China, Malaysia, and Singapore) or Traditional
|
|
(Hong Kong and Taiwan)), or Japanese.
|
|
</para>
|
|
|
|
<para>
|
|
For Hong Kong, which uses Traditional Chinese and where Cantonese is the
|
|
dominant language, the Hong Kong Supplementary Character Set was added to
|
|
Unicode in 2005 and revised in 2009 (it is part of CJK Extension B and
|
|
contains more than 1900 characters). Earlier fonts will not be able to
|
|
support either Cantonese or use these characters where local names are
|
|
written in Mandarin. The UMing HK, Noto Sans HK and WenQuanYi Zen Hei
|
|
fonts all seem to cover Hong Kong usage
|
|
(<application>fontconfig</application> disagrees about Noto Sans HK).
|
|
</para>
|
|
|
|
<para>
|
|
The Han glyphs are double width, and other glyphs in the same font may be
|
|
narrower. For their CJK content, all of these fonts can be regarded as
|
|
monospaced (i.e. fixed width).
|
|
</para>
|
|
|
|
<para>
|
|
If you wish to use Noto fonts, there are also Serif versions of their
|
|
various CJK fonts. The Noto Sans/Serif SC/TC/HK/JP/KR fonts are
|
|
derived from a monolithic <ulink
|
|
url="https://github.com/notofonts/noto-cjk">noto-cjk</ulink>
|
|
repository and you can find the
|
|
<filename class='extension'>.ttc</filename> files for the entire
|
|
Noto Sans CJK (including SC/TC/HK/JP/KR) or Noto Serif CJK font family
|
|
there. Google recommends the normal users to use the separate Noto
|
|
Sans/Serif SC/TC/HK/JP/KR fonts instead, but if you are capable and
|
|
willing to read texts in more than one CJK character systems it may be
|
|
easier to use a monolithic
|
|
<filename class='extension'>.ttc</filename> file for full coverage.
|
|
</para>
|
|
|
|
<para>
|
|
If all you wish to do is render CJK glyphs, installing
|
|
<xref linkend="wenquanyi-zenhei"/> may be a good place to start if you do
|
|
not already have a preference.
|
|
</para>
|
|
|
|
<bridgehead renderas="sect3" id="Chinese-fonts"
|
|
xreflabel="Chinese fonts">Chinese fonts:</bridgehead>
|
|
|
|
<para>
|
|
In Chinese, there are three font styles in common use: Sung (also
|
|
known as Song or Ming), which is the most-common ornamented ("serif")
|
|
form, Kai ("brush strokes") which is an earlier ornamented style that
|
|
looks quite different, and modern Hei ("sans"). Unless you appreciate the
|
|
differences, you probably do not want to install Kai fonts.
|
|
</para>
|
|
|
|
<para>
|
|
The current versions of Chinese Noto Sans fonts can be found at <ulink
|
|
url="https://fonts.google.com/specimen/Noto+Sans+SC">Noto Sans SC</ulink>
|
|
for Simplified Chinese, <ulink
|
|
url="https://fonts.google.com/specimen/Noto+Sans+TC">Noto Sans TC</ulink>
|
|
for Traditional Chinese, and as mentioned above <ulink
|
|
url="https://fonts.google.com/specimen/Noto+Sans+HK">Noto Sans HK</ulink>
|
|
for use in Hong Kong.
|
|
</para>
|
|
|
|
<!-- prefer the less-old Opendesktop-fonts to fireflysung
|
|
<bridgehead renderas="sect4" id="fireflysung"
|
|
xreflabel="fireflysung">Fireflysung</bridgehead>
|
|
|
|
<para>
|
|
<ulink url=
|
|
"http://ftp.osuosl.org/pub/blfs/conglomeration/Xorg//fireflysung-1.3.0.tar.gz">fireflysung</ulink>
|
|
– This font ('AR PL New Sung') was one of the first libre fonts to
|
|
provides Chinese coverage. <application>fontconfig</application> knows
|
|
it is to be treated as a Serif font.
|
|
</para> -->
|
|
|
|
<!-- the get/noto/help/cjk url now gives general info on the organization of
|
|
Noto fonts, linked from above. The current versions are no-longer in
|
|
ttc packages, there is a separate set of files for each CJK language.
|
|
Therefore, this appears to be redundant.
|
|
|
|
<bridgehead renderas="sect4" id="NotoSansCJK"
|
|
xreflabel="Noto Sans CJK">Noto Sans CJK</bridgehead>
|
|
|
|
<!\-\- indexterm entry retained for future linkage from kde \-\->
|
|
<indexterm zone="TTF-and-OTF-fonts NotoSansCJK">
|
|
<primary sortas="a-noto-sans-cjk">Noto Sans CJK</primary>
|
|
</indexterm>
|
|
|
|
<para>
|
|
<ulink url="https://www.google.com/get/noto/help/cjk/">
|
|
Noto Sans CJK
|
|
</ulink>
|
|
– Sans-Serif sets of all CJK fonts in a ttc – as the link
|
|
says, you can choose to install the TTC and cover all the languages in
|
|
all weights in a 110MB file, or you can download subsets. There are
|
|
also Monospace versions.
|
|
</para> -->
|
|
|
|
<bridgehead renderas="sect4" id="Opendesktop-fonts"
|
|
xreflabel="Opendesktop-fonts">Opendesktop fonts</bridgehead>
|
|
|
|
<para>
|
|
A copy of version 1.4.2 of the
|
|
<ulink url="https://sources.archlinux.org/other/opendesktop-fonts/">
|
|
opendesktop-fonts
|
|
</ulink>
|
|
is preserved at Arch. This was a later development of fireflysung which
|
|
BLFS used to recommend, adding Kai and Mono fonts. The name of the Sung
|
|
font remains 'AR PL New Sung' so they cannot both be installed together.
|
|
</para>
|
|
|
|
<para>
|
|
At one time there was a 1.6 release, and more recently some versions at
|
|
github, which also included a Sans font (Odohei), but those have dropped
|
|
off the web and it is unclear if there was a problem.
|
|
<application>Fontconfig</application> does not know anything about the
|
|
later fonts (AR PL New Kai, AR PL New Sung Mono) and will default to
|
|
treating them as Sans.
|
|
</para>
|
|
|
|
<!-- comment, because not recommended
|
|
<bridgehead renderas="sect4" id="UKai"
|
|
xreflabel="UKai">UKai</bridgehead>
|
|
|
|
<para>
|
|
<ulink
|
|
url="http://packages.debian.org/sid/fonts-arphic-ukai">UKai fonts</ulink>
|
|
– sets of Chinese Kai fonts in a ttc which contain variations of
|
|
Simplified and Traditional (Taiwanese, second variant for different
|
|
<ulink url="https://en.wikipedia.org/wiki/Bopomofo">bopomofo</ulink>,
|
|
and Cantonese). This ships with old-syntax files which can install to
|
|
<filename class="directory">/etc/fonts/conf.d/</filename> but see <xref
|
|
linkend="editing-old-style-conf-files"/>.
|
|
</para>
|
|
-->
|
|
|
|
<bridgehead renderas="sect4" id="UMing"
|
|
xreflabel="UMing">UMing</bridgehead>
|
|
|
|
<para>
|
|
<ulink url=
|
|
"http://ftp.debian.org/debian/pool/main/f/fonts-arphic-uming/">UMing fonts</ulink>
|
|
– sets of Chinese Ming fonts (from Debian, use the '.orig' tarball)
|
|
in a ttc which contain variations of Simplified and Traditional Chinese
|
|
(Taiwanese, with second variant for different
|
|
<ulink url="https://en.wikipedia.org/wiki/Bopomofo">bopomofo</ulink>,
|
|
and Cantonese for Hong Kong). This ships with old-syntax files which you
|
|
can install to
|
|
<filename class="directory">/etc/fonts/conf.d/</filename> but see <xref
|
|
linkend="editing-old-style-conf-files"/>.
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4" id="wenquanyi-zenhei"
|
|
xreflabel="WenQuanYi ZenHei">WenQuanYi Zen Hei</bridgehead>
|
|
|
|
<indexterm zone="TTF-and-OTF-fonts wenquanyi-zenhei">
|
|
<primary sortas="a-wenquanyi-zenhei">WenQuanYi Zen Hei</primary>
|
|
</indexterm>
|
|
|
|
<para>
|
|
<ulink
|
|
url="https://sourceforge.net/projects/wqy/files/wqy-zenhei/">WenQuanYi
|
|
Zen Hei</ulink> provides a Sans-Serif font which covers all CJK scripts
|
|
including Korean. Although it includes old-style conf files, these are
|
|
not required: <application>fontconfig</application> will already treat
|
|
these fonts (the 'sharp' contains bitmaps, the monospace appears not
|
|
to be Mono in its ASCII part) as Sans, Serif, and Monospace. If all
|
|
you wish to do is to be able to render Han and Korean text without
|
|
worrying about the niceties of the shapes used, the main font from
|
|
this package is a good font to use.
|
|
</para>
|
|
|
|
<bridgehead renderas="sect3" id="Japanese-fonts"
|
|
xreflabel="Japanese fonts">Japanese fonts:</bridgehead>
|
|
|
|
<para>
|
|
In Japanese, Gothic fonts are Sans, and Mincho are Serif. BLFS used to
|
|
only mention the Kochi fonts, but those appear to now be the
|
|
least-preferred of the Japanese fonts.
|
|
</para>
|
|
|
|
<para>
|
|
Apart from the fonts detailed below, also consider <ulink
|
|
url="https://fonts.google.com/specimen/Noto+Sans+JP">Noto Sans
|
|
JP</ulink>.
|
|
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4" id="IPAex"
|
|
xreflabel="IPAex fonts">IPAex fonts</bridgehead>
|
|
|
|
<!-- indexterm retained for expected link from tuning fontconfig -->
|
|
<indexterm zone="TTF-and-OTF-fonts IPAex">
|
|
<primary sortas="a-ipaex-fonts">IPAex fonts</primary>
|
|
</indexterm>
|
|
|
|
<para>
|
|
The <ulink url="https://moji.or.jp/ipafont/">IPAex fonts</ulink> are
|
|
the current version of the IPA fonts. Use
|
|
<ulink url='https://moji-or-jp.translate.goog/ipafont/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp'>Google Translate</ulink>
|
|
on the home page, then click on the download link for IPAex Font Ver.004.01.
|
|
Unfortunately, <application>fontconfig</application> only knows about
|
|
the older IPAfonts and the forked IPA Mona font (which is not easily
|
|
available and which apparently does not meet Debian's Free Software
|
|
guidelines). If you install the IPAex fonts, you may want to make it known
|
|
to fontconfig. Please see <xref
|
|
linkend="prefer-chosen-CJK-fonts"/> for one way to accomplish this.
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4" id="Kochi"
|
|
xreflabel="Kochi">Kochi fonts</bridgehead>
|
|
|
|
<para>
|
|
The <ulink url="https://osdn.net/projects/efont/releases/p1357">Kochi
|
|
Substitute fonts</ulink> were the first truly libre Japanese fonts (the
|
|
earlier Kochi fonts were allegedly plagiarized from a commercial font).
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4" id="VLGothic"
|
|
xreflabel="VL Gothic">VL Gothic</bridgehead>
|
|
|
|
<indexterm zone="TTF-and-OTF-fonts VLGothic">
|
|
<primary sortas="a-vlgothic-fonts">VL Gothic</primary>
|
|
</indexterm>
|
|
|
|
<para>
|
|
The <ulink url="https://osdn.net/projects/vlgothic/releases/">VL
|
|
Gothic</ulink> font is a modern Japanese font in two variants with
|
|
monotonic or proportional spacing for the non-Japanese characters.
|
|
</para>
|
|
|
|
<bridgehead renderas="sect3" id="Korean-fonts"
|
|
xreflabel="Korean fonts">Korean fonts:</bridgehead>
|
|
|
|
<para>
|
|
In Korean, Batang or Myeongjo (the older name) are Serif, Dotum or
|
|
Gothic are the main Sans fonts. BLFS previously recommended the
|
|
Baekmuk fonts, but the Nanum and Un fonts are now preferred to Baekmuk by
|
|
<application>fontconfig</application> because of user requests.
|
|
</para>
|
|
|
|
<!-- when testing, my previous Nanum link gave permission errors, so
|
|
link to a general page, at the cost of making it more complicated to
|
|
download -->
|
|
|
|
<para>
|
|
A convenient place to see examples of these and many other Korean
|
|
fonts is <ulink url="https://www.freekoreanfont.com/">Free Korean
|
|
Fonts</ulink>. Click on 'Gothic Fonts' or 'All Categories -> Myeongjo
|
|
Fonts', then click on the font example to see more details including the
|
|
License, and click on the link to download it. For Nanum, you will need
|
|
to be able to read Korean to find the download link on the page you get
|
|
to. For Un there are direct links and you can find the un-fonts-core
|
|
tarball in the <filename class="directory">releases/</filename>
|
|
directory.
|
|
</para>
|
|
|
|
<para>
|
|
Alternatively, consider <ulink
|
|
url="https://fonts.google.com/specimen/Noto+Sans+KR">Noto Sans
|
|
KR</ulink> or <xref linkend="wenquanyi-zenhei"/>.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|