-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfonts.conf
98 lines (93 loc) · 2.25 KB
/
fonts.conf
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
~/.fonts.conf file to configure local fonts
-->
<fontconfig>
<!--
local fonts directory
-->
<dir>~/.fonts</dir>
<!--
dpi setting
-->
<match target="pattern">
<test name="dpi" mode="assign">
<double>96</double>
</test>
</match>
<!--
fonts alias settings
-->
<match target="pattern">
<test name="family">
<string>宋体</string>
</test>
<edit name="family" mode="assign">
<string>SimSun</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>新宋体</string>
</test>
<edit name="family" mode="assign">
<string>NSimSun</string>
</edit>
</match>
<!--
NSimSun english portion substitution
-->
<match target="pattern">
<test name="family" >
<string>NSimSun</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Courier New</string>
</edit>
</match>
<!--
Substitue `Courier' with `Courier New'
-->
<match target="pattern">
<test name="family">
<string>Courier</string>
</test>
<edit name="family" mode="assign" >
<string>Courier New</string>
</edit>
</match>
<!--
The dual-width Asian fonts (spacing=dual) are not rendered correctly,
apparently FreeType forces all widths to match. Trying to disable the
width forcing code by setting globaladvance=false alone doesn't help.
As a brute force workaround, also set spacing=proportional, i.e. handle
them as proportional fonts:
-->
<match target="font">
<test name="lang" compare="contains">
<string>zh</string>
</test>
<edit name="spacing" mode="assign">
<const>proportional</const>
</edit>
<edit name="globaladvance" mode="assign">
<bool>false</bool>
</edit>
</match>
<!--
Font size settings:
set the apposite font size,so it's easy to be read
-->
<match target="pattern" >
<test name="pixelsize" compare="more_eq" >
<double>8</double>
</test>
<test name="pixelsize" compare="less_eq" >
<double>12</double>
</test>
<edit name="pixelsize" mode="assign" >
<double>12</double>
</edit>
</match>
</fontconfig>