summaryrefslogtreecommitdiffstats
path: root/system/CNS11643-font/README
blob: 674ef9135db4c5055169bb42e11c9a53d1aa0421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
This package contains two type of fonts: TW-Kai and TW-Sung, which are
provided by CNS11643 Chinese Standard Interchange Code Master Ideographs
from Taiwan.

A config file is included, 35-CNS11643-font.conf, which binds the
Windows counterparts "MingLiU" (細明體) and "PMingLiU"
(新細明體) to TW-Sung, and "DFKai-SB", "UKai" (標楷體) to TW-Kai.
If you want it copied into /etc/fonts/conf.avail, add the
environment variable "ADDCONF=yes" in front of the SlackBuild.
I recommend running the SlackBuild like this:

  ADDCONF=yes ./CNS11643-font.SlackBuild

If you're using a SlackBuild manager, the way of adding variables may
differ; please consult the manual of your program for instructions.

If you don't want your default fonts replaced, you can add this to
/etc/fonts/conf.avail/50-user.conf between the <fontconfig> tags:
(please replace the font names according to the comments)

<!-- Custom font preference -->
<alias>
    <family>serif</family>
    <prefer>
        <!-- preferred serif latin font -->
        <family>Noto Serif</family>
        <!-- preferred serif fallback font -->
        <family>Noto Serif CJK TC</family>
    </prefer>
</alias>
<alias>
    <family>sans-serif</family>
    <prefer>
        <!-- preferred sans-serif latin font -->
        <family>Noto Sans</family>
        <!-- preferred sans-serif fallback font -->
        <family>Noto Sans CJK TC</family>
    </prefer>
</alias>
<match target="pattern">
    <test qual="any" name="family" compare="eq">
        <string>monospace</string>
    </test>
    <!-- replace "Liberation Mono" with preferred monospace font -->
    <edit name="family" mode="assign" binding="strong">
        <string>Liberation Mono</string>
    </edit>
</match>
<alias>
    <!-- replace "Liberation Mono" with preferred monospace font -->
    <family>Liberation Mono</family>
    <prefer>
        <!-- preferred monospace font -->
        <family>Liberation Mono</family>
        <!-- preferred monospace fallback font
             (does not necessarily need to be monospace -->
        <family>Sarasa Fixed TC</family>
    </prefer>
</alias>
<alias>
    <family>system-ui</family>
    <prefer>
        <!-- preferred system-ui latin font (usually sans-serif) -->
        <family>Noto Sans</family>
        <!-- preferred system-ui fallback font -->
        <family>Noto Sans CJK TC</family>
    </prefer>
</alias>

The source file can be found at "http://data.gov.tw/node/5961", and the
license can be found at "http://www.cns11643.gov.tw/AIDB/copyright.do".
Note that the license is CC BY-ND ("http://www.cns11643.gov.tw/AIDB/
news_view.do?sn=bv").