Debian Codegraph @

debian/90-fonts-nanum.conf

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3 <fontconfig>
4 <!-- D2Coding misadvertises itself as monospaced like many other MS Korean
5 fonts, but is actually dualspaced. This fixes it -->
6 <match target="font">
7 <test qual="any" name="family" compare="eq">
8 <string>D2Coding ligature</string>
9 </test>
10 <edit name="spacing" mode="assign">
11 <const>dual</const>
12 </edit>
13 <edit name="globaladvance" mode="assign">
14 <bool>false</bool>
15 </edit>
16 </match>
17
18 <!-- workaround for wrong weight -->
19 <match target="scan">
20 <test name="fullname" qual="any" compare="eq">
21 <string>NanumBarunGothic Bold</string>
22 </test>
23 <edit name="weight" mode="assign"><const>bold</const></edit>
24 </match>
25 <match target="scan">
26 <test name="fullname" qual="any" compare="eq">
27 <string>NanumGothicBold</string>
28 </test>
29 <edit name="weight" mode="assign"><const>bold</const></edit>
30 </match>
31 <match target="scan">
32 <test name="fullname" qual="any" compare="eq">
33 <string>NanumMyeongjoBold</string>
34 </test>
35 <edit name="weight" mode="assign"><const>bold</const></edit>
36 </match>
37
38 <!-- workaround for duplicated styles -->
39 <match target="scan">
40 <test name="fullname" qual="any" compare="eq">
41 <string>NanumSquare Bold</string>
42 </test>
43 <edit name="style" mode="assign_replace"><string>Bold</string></edit>
44 <edit name="stylelang" mode="assign_replace"><string>en</string></edit>
45 </match>
46 <match target="scan">
47 <test name="fullname" qual="any" compare="eq">
48 <string>NanumSquare Neo Bold</string>
49 </test>
50 <edit name="style" mode="assign_replace"><string>Bold</string></edit>
51 <edit name="stylelang" mode="assign_replace"><string>en</string></edit>
52 </match>
53
54 <!-- specify fallbacks for the missing glyphs. -->
55 <match target="pattern">
56 <test name="family" compare="eq">
57 <string>D2Coding ligature</string>
58 </test>
59 <edit name="family" mode="append">
60 <string>NanumBarunGothic</string>
61 <string>DejaVu Sans Mono</string>
62 </edit>
63 </match>
64 <match target="pattern">
65 <test name="family" qual="any" compare="eq">
66 <string>NanumBarunGothic</string>
67 </test>
68 <edit name="family" mode="append">
69 <string>DejaVu Sans</string>
70 </edit>
71 </match>
72 <match target="pattern">
73 <test name="family" qual="any" compare="eq">
74 <string>NanumGothic</string>
75 </test>
76 <edit name="family" mode="append">
77 <string>DejaVu Sans</string>
78 </edit>
79 </match>
80 <match target="pattern">
81 <test name="family" qual="any" compare="eq">
82 <string>NanumMyeongjo</string>
83 </test>
84 <edit name="family" mode="append">
85 <string>DejaVu Serif</string>
86 </edit>
87 </match>
88 <match target="pattern">
89 <test name="family" qual="any" compare="eq">
90 <string>NanumSquare</string>
91 </test>
92 <edit name="family" mode="append">
93 <string>DejaVu Sans</string>
94 </edit>
95 </match>
96 <match target="pattern">
97 <test name="family" compare="eq">
98 <string>NanumSquare Neo</string>
99 </test>
100 <edit name="family" mode="append">
101 <string>DejaVu Sans</string>
102 </edit>
103 </match>
104 <match target="pattern">
105 <test name="family" compare="eq">
106 <string>NanumSquare Neo variable</string>
107 </test>
108 <edit name="family" mode="append">
109 <string>DejaVu Sans</string>
110 </edit>
111 </match>
112
113 <!--
114 Font specific tweaks
115 -->
116 <match target="font">
117 <test name="family" qual="any" compare="eq">
118 <string>NanumGothic</string>
119 </test>
120 <edit name="antialias" mode="assign"><bool>true</bool></edit>
121 <edit name="hinting" mode="assign"><bool>true</bool></edit>
122 <edit name="autohint" mode="assign"><bool>false</bool></edit>
123 </match>
124 <match target="font">
125 <test name="family" qual="any" compare="eq">
126 <string>NanumMyeongjo</string>
127 </test>
128 <edit name="antialias" mode="assign"><bool>true</bool></edit>
129 <edit name="hinting" mode="assign"><bool>true</bool></edit>
130 <edit name="autohint" mode="assign"><bool>false</bool></edit>
131 </match>
132 <match target="font">
133 <test name="family" qual="any" compare="eq">
134 <string>NanumBarunGothic</string>
135 </test>
136 <edit name="antialias" mode="assign"><bool>true</bool></edit>
137 <edit name="hinting" mode="assign"><bool>true</bool></edit>
138 <edit name="autohint" mode="assign"><bool>false</bool></edit>
139 </match>
140 <!-- NanumMyeongjo doesn't look good with strong grid fitting -->
141 <match target="font">
142 <test name="family" qual="any">
143 <string>NanumMyeongjo</string>
144 </test>
145 <test name="hintstyle" compare="more">
146 <const>hintslight</const>
147 </test>
148 <edit name="hintstyle" mode="assign" binding="weak">
149 <const>hintslight</const>
150 </edit>
151 </match>
152 </fontconfig>