~ubuntu-branches/ubuntu/intrepid/fontconfig/intrepid

« back to all changes in this revision

Viewing changes to conf.d/65-fonts-persian.conf

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-12-05 14:16:40 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071205141640-xikzw02c8gpgndze
Tags: 2.5.0-2ubuntu1
* Merge with Debian; remaining changes:
  - conf.d/40-nonlatin.conf: Add `MgOpen Moderna' to the list of fonts
    for which we might fall back to sans-serif.
  - conf.d/60-latin.conf: Prefer DejaVu over Bitstream Vera,
    as done for dapper.
  - 52-languageselector.conf loads language-selector.conf.
  - Include 52-languageselector.conf in the lists in conf.d/Makefile.am so
    that it actually gets installed and used.  Fixes LP 73714.
  - Some hackery in the debconf config script which attempts to upgrade
    user preferences across the many changes which have occurred to the
    debconf questions.  In particular:
    + Do not attempt to divine enable_bitmaps option by reading the
      symlinks in /etc.  This leaves the only way to permanently change
      the behaviour being dpkg-reconfigure.  The divination code was
      wrong and was intended by Debian to preserve pre-debconf
      configuration.  It would be nicer to preserve handmade updates to
      the /etc directory.
    + Always create /etc/fontconfig/conf.d/ symlink for enabling or
      disabling bitmap fonts.  This records the state from debconf
      unambiguously into the filesystem and will make it possible for
      future upgrades (from Edgy or later) to preserve handmade changes.
  - Add a (optional) include for "language-selector.conf" in fonts.conf
  - debian/patches/03_preferred_symbol_font.patch:
    + prefer "Standard Symbols L" as symbol font (Ubuntu: #37745)
  - Fix incorrect location of /usr/share/X11/fonts.
  - Correctly fix the (eg) firefox vs. (eg) evince font metrics problem:
    + New FC_ANY_METRICS property, boolean.
    + Change URW Nimbus and AMT font aliases in 30-{urw,metric}-aliases.conf
      into equivalent <match> directives so that we can add an additional
      test which disables them when the anymetrics property is true.
* Link using -Bsymbolic-functions.
* debian/rules (clean): Clean doc directory.
* debian/rules: Set shell to /bin/bash.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0"?>
2
2
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
 
<!-- /etc/fonts/conf.d/10-fonts-persian.conf -->
4
3
<!--
5
4
  fonts-persian.conf
6
5
  To configure Persian fonts from The FarsiWeb Project.
37
36
<fontconfig>
38
37
 
39
38
 
40
 
<!--
41
 
  We don't want weak bindings.  So got to use the syntactical expansion
42
 
  of alias tag to do binding=same :(.  Please support that in alias.
43
 
  -->
44
 
 
45
 
 
46
39
<!-- Deprecated fonts are discouraged -->
47
40
 
48
41
        <!-- Nesf[2] is officially deprecated and has problematic tables -->
49
 
        <match>
50
 
                <test name="family">
51
 
                        <string>Nesf</string>
52
 
                </test>
53
 
                <edit name="family" mode="assign" binding="same">
54
 
                        <string>Nesf2</string>
55
 
                </edit>
56
 
        </match>
57
 
        <match>
58
 
                <test name="family">
59
 
                        <string>Nesf2</string>
60
 
                </test>
61
 
                <edit name="family" mode="assign" binding="same">
62
 
                        <string>Persian_sansserif_default</string>
63
 
                </edit>
64
 
        </match>
65
 
 
66
 
        <!-- Tahoma looks awful (TURNED-OFF) -->
67
 
        <!--match>
68
 
                <test name="family">
69
 
                        <string>Tahoma</string>
70
 
                </test>
71
 
                <edit name="family" mode="prepend" binding="same">
72
 
                        <string>Persian_sansserif_default</string>
73
 
                </edit>
74
 
        </match-->
 
42
        <alias binding="same">
 
43
          <family>Nesf</family>
 
44
          <accept><family>Nesf2</family></accept>
 
45
        </alias>
 
46
        <alias binding="same">
 
47
          <family>Nesf2</family>
 
48
          <accept><family>Persian_sansserif_default</family></accept>
 
49
        </alias>
75
50
 
76
51
<!-- Name changes and spelling variant aliases -->
77
52
 
78
 
        <!-- Changed due to trademark problems -->
79
 
        <match>
80
 
                <test name="family">
81
 
                        <string>Nazanin</string>
82
 
                </test>
83
 
                <edit name="family" mode="assign" binding="same">
84
 
                        <string>Nazli</string>
85
 
                </edit>
86
 
        </match>
87
 
        <match>
88
 
                <test name="family">
89
 
                        <string>Lotus</string>
90
 
                </test>
91
 
                <edit name="family" mode="assign" binding="same">
92
 
                        <string>Lotoos</string>
93
 
                </edit>
94
 
        </match>
95
 
 
96
 
        <!-- Changed due to transcription orthography -->
97
 
        <match>
98
 
                <test name="family">
99
 
                        <string>Yaqut</string>
100
 
                </test>
101
 
                <edit name="family" mode="assign" binding="same">
102
 
                        <string>Yaghoot</string>
103
 
                </edit>
104
 
        </match>
105
 
        <match>
106
 
                <test name="family">
107
 
                        <string>Yagut</string>
108
 
                </test>
109
 
                <edit name="family" mode="assign" binding="same">
110
 
                        <string>Yaghoot</string>
111
 
                </edit>
112
 
        </match>
113
 
        <match>
114
 
                <test name="family">
115
 
                        <string>Yaghut</string>
116
 
                </test>
117
 
                <edit name="family" mode="assign" binding="same">
118
 
                        <string>Yaghoot</string>
119
 
                </edit>
120
 
        </match>
121
 
        <match>
122
 
                <test name="family">
123
 
                        <string>Traffic</string>
124
 
                </test>
125
 
                <edit name="family" mode="assign" binding="same">
126
 
                        <string>Terafik</string>
127
 
                </edit>
128
 
        </match>
129
 
        <match>
130
 
                <test name="family">
131
 
                        <string>Ferdowsi</string>
132
 
                </test>
133
 
                <edit name="family" mode="assign" binding="same">
134
 
                        <string>Ferdosi</string>
135
 
                </edit>
136
 
        </match>
137
 
        <match>
138
 
                <test name="family">
139
 
                        <string>Fantezy</string>
140
 
                </test>
141
 
                <edit name="family" mode="assign" binding="same">
142
 
                        <string>Fantezi</string>
143
 
                </edit>
144
 
        </match>
 
53
        <alias binding="same">
 
54
          <family>Nazanin</family>
 
55
          <accept><family>Nazli</family></accept>
 
56
        </alias>
 
57
        <alias binding="same">
 
58
          <family>Lotus</family>
 
59
          <accept><family>Lotoos</family></accept>
 
60
        </alias>
 
61
        <alias binding="same">
 
62
          <family>Yaqut</family>
 
63
          <accept><family>Yaghoot</family></accept>
 
64
        </alias>
 
65
        <alias binding="same">
 
66
          <family>Yaghut</family>
 
67
          <accept><family>Yaghoot</family></accept>
 
68
        </alias>
 
69
        <alias binding="same">
 
70
          <family>Traffic</family>
 
71
          <accept><family>Terafik</family></accept>
 
72
        </alias>
 
73
        <alias binding="same">
 
74
          <family>Ferdowsi</family>
 
75
          <accept><family>Ferdosi</family></accept>
 
76
        </alias>
 
77
        <alias binding="same">
 
78
          <family>Fantezy</family>
 
79
          <accept><family>Fantezi</family></accept>
 
80
        </alias>
145
81
 
146
82
 
147
83
<!-- Classify fonts. -->
148
84
 
149
85
        <!-- Persian_title class -->
150
 
        <match>
151
 
                <test name="family">
152
 
                        <string>Jadid</string>
153
 
                </test>
154
 
                <edit name="family" mode="append" binding="same">
155
 
                        <string>Persian_title</string>
156
 
                </edit>
157
 
        </match>
158
 
        <match>
159
 
                <test name="family">
160
 
                        <string>Titr</string>
161
 
                </test>
162
 
                <edit name="family" mode="append" binding="same">
163
 
                        <string>Persian_title</string>
164
 
                </edit>
165
 
        </match>
 
86
        <alias binding="same">
 
87
          <family>Jadid</family>
 
88
          <accept><family>Persian_title</family></accept>
 
89
        </alias>
 
90
        <alias binding="same">
 
91
          <family>Titr</family>
 
92
          <accept><family>Persian_title</family></accept>
 
93
        </alias>
166
94
 
167
95
        <!-- Persian_fantasy class -->
168
 
        <match>
169
 
                <test name="family">
170
 
                        <string>Kamran</string>
171
 
                </test>
172
 
                <edit name="family" mode="append" binding="same">
173
 
                        <string>Homa</string>
174
 
                </edit>
175
 
                <edit name="family" mode="append" binding="same">
176
 
                        <string>Persian_fantasy</string>
177
 
                </edit>
178
 
        </match>
179
 
        <match>
180
 
                <test name="family">
181
 
                        <string>Homa</string>
182
 
                </test>
183
 
                <edit name="family" mode="append" binding="same">
184
 
                        <string>Kamran</string>
185
 
                </edit>
186
 
                <edit name="family" mode="append" binding="same">
187
 
                        <string>Persian_fantasy</string>
188
 
                </edit>
189
 
        </match>
190
 
        <match>
191
 
                <test name="family">
192
 
                        <string>Fantezi</string>
193
 
                </test>
194
 
                <edit name="family" mode="append" binding="same">
195
 
                        <string>Persian_fantasy</string>
196
 
                </edit>
197
 
        </match>
198
 
        <match>
199
 
                <test name="family">
200
 
                        <string>Tabassom</string>
201
 
                </test>
202
 
                <edit name="family" mode="append" binding="same">
203
 
                        <string>Persian_fantasy</string>
204
 
                </edit>
205
 
        </match>
 
96
        <alias binding="same">
 
97
          <family>Kamran</family>
 
98
          <accept>
 
99
          <family>Persian_fantasy</family>
 
100
          <family>Homa</family>
 
101
          </accept>
 
102
        </alias>
 
103
        <alias binding="same">
 
104
          <family>Homa</family>
 
105
          <accept>
 
106
          <family>Persian_fantasy</family>
 
107
          <family>Kamran</family>
 
108
          </accept>
 
109
        </alias>
 
110
        <alias binding="same">
 
111
          <family>Fantezi</family>
 
112
          <accept><family>Persian_fantasy</family></accept>
 
113
        </alias>
 
114
        <alias binding="same">
 
115
          <family>Tabassom</family>
 
116
          <accept><family>Persian_fantasy</family></accept>
 
117
        </alias>
206
118
 
207
119
        <!-- Persian_square class -->
208
 
        <match>
209
 
                <test name="family">
210
 
                        <string>Arshia</string>
211
 
                </test>
212
 
                <edit name="family" mode="append" binding="same">
213
 
                        <string>Persian_square</string>
214
 
                </edit>
215
 
        </match>
216
 
        <match>
217
 
                <test name="family">
218
 
                        <string>Nasim</string>
219
 
                </test>
220
 
                <edit name="family" mode="append" binding="same">
221
 
                        <string>Persian_square</string>
222
 
                </edit>
223
 
        </match>
224
 
        <match>
225
 
                <test name="family">
226
 
                        <string>Elham</string>
227
 
                </test>
228
 
                <edit name="family" mode="append" binding="same">
229
 
                        <string>Farnaz</string>
230
 
                </edit>
231
 
                <edit name="family" mode="append" binding="same">
232
 
                        <string>Persian_square</string>
233
 
                </edit>
234
 
        </match>
235
 
        <match>
236
 
                <test name="family">
237
 
                        <string>Farnaz</string>
238
 
                </test>
239
 
                <edit name="family" mode="append" binding="same">
240
 
                        <string>Elham</string>
241
 
                </edit>
242
 
                <edit name="family" mode="append" binding="same">
243
 
                        <string>Persian_square</string>
244
 
                </edit>
245
 
        </match>
246
 
        <match>
247
 
                <test name="family">
248
 
                        <string>Sina</string>
249
 
                </test>
250
 
                <edit name="family" mode="append" binding="same">
251
 
                        <string>Persian_square</string>
252
 
                </edit>
253
 
        </match>
 
120
        <alias binding="same">
 
121
          <family>Arshia</family>
 
122
          <accept><family>Persian_square</family></accept>
 
123
        </alias>
 
124
        <alias binding="same">
 
125
          <family>Nasim</family>
 
126
          <accept><family>Persian_square</family></accept>
 
127
        </alias>
 
128
        <alias binding="same">
 
129
          <family>Elham</family>
 
130
          <accept>
 
131
          <family>Persian_square</family>
 
132
          <family>Farnaz</family>
 
133
          </accept>
 
134
        </alias>
 
135
        <alias binding="same">
 
136
          <family>Farnaz</family>
 
137
          <accept>
 
138
          <family>Persian_square</family>
 
139
          <family>Elham</family>
 
140
          </accept>
 
141
        </alias>
 
142
        <alias binding="same">
 
143
          <family>Sina</family>
 
144
          <accept><family>Persian_square</family></accept>
 
145
        </alias>
254
146
 
255
147
<!-- Font ordering per class -->
256
148
 
257
149
        <!-- Persian_title class -->
258
 
        <match>
259
 
                <test name="family">
260
 
                        <string>Persian_title</string>
261
 
                </test>
262
 
                <edit name="family" mode="append" binding="same">
263
 
                        <string>Persian_serif</string>
264
 
                </edit>
265
 
                <edit name="family" mode="append" binding="same">
266
 
                        <string>Jadid</string>
267
 
                </edit>
268
 
                <edit name="family" mode="append" binding="same">
269
 
                        <string>Titr</string>
270
 
                </edit>
271
 
        </match>
 
150
        <alias binding="same">
 
151
          <family>Persian_title</family>
 
152
          <accept>
 
153
          <family>Titr</family>
 
154
          <family>Jadid</family>
 
155
          <family>Persian_serif</family>
 
156
          </accept>
 
157
        </alias>
272
158
 
273
159
        <!-- Persian_fantasy class -->
274
 
        <match>
275
 
                <test name="family">
276
 
                        <string>Persian_fantasy</string>
277
 
                </test>
278
 
                <edit name="family" mode="append" binding="same">
279
 
                        <string>Persian_square</string>
280
 
                </edit>
281
 
                <edit name="family" mode="append" binding="same">
282
 
                        <string>Tabassom</string>
283
 
                </edit>
284
 
                <edit name="family" mode="append" binding="same">
285
 
                        <string>Fantezi</string>
286
 
                </edit>
287
 
                <edit name="family" mode="append" binding="same">
288
 
                        <string>Kamran</string>
289
 
                </edit>
290
 
                <edit name="family" mode="append" binding="same">
291
 
                        <string>Homa</string>
292
 
                </edit>
293
 
        </match>
 
160
        <alias binding="same">
 
161
          <family>Persian_fantasy</family>
 
162
          <accept>
 
163
          <family>Homa</family>
 
164
          <family>Kamran</family>
 
165
          <family>Fantezi</family>
 
166
          <family>Tabassom</family>
 
167
          <family>Persian_square</family>
 
168
          </accept>
 
169
        </alias>
294
170
 
295
171
        <!-- Persian_square class -->
296
 
        <match>
297
 
                <test name="family">
298
 
                        <string>Persian_square</string>
299
 
                </test>
300
 
                <edit name="family" mode="append" binding="same">
301
 
                        <string>Persian_serif</string>
302
 
                </edit>
303
 
                <edit name="family" mode="append" binding="same">
304
 
                        <string>Sina</string>
305
 
                </edit>
306
 
                <edit name="family" mode="append" binding="same">
307
 
                        <string>Nasim</string>
308
 
                </edit>
309
 
                <edit name="family" mode="append" binding="same">
310
 
                        <string>Farnaz</string>
311
 
                </edit>
312
 
                <edit name="family" mode="append" binding="same">
313
 
                        <string>Elham</string>
314
 
                </edit>
315
 
                <edit name="family" mode="append" binding="same">
316
 
                        <string>Arshia</string>
317
 
                </edit>
318
 
        </match>
 
172
        <alias binding="same">
 
173
          <family>Persian_square</family>
 
174
          <accept>
 
175
          <family>Arshia</family>
 
176
          <family>Elham</family>
 
177
          <family>Farnaz</family>
 
178
          <family>Nasim</family>
 
179
          <family>Sina</family>
 
180
          <family>Persian_serif</family>
 
181
          </accept>
 
182
        </alias>
319
183
 
320
184
<!-- Register the fonts that we actually do have -->
321
185