More incorrect uses of noremap.
[profile.git] / .config / fontconfig / fonts.conf
1 <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
2 <fontconfig>
3
4         <!--
5
6         /********************************************************************
7                                       README
8         /********************************************************************
9
10         This /etc/fonts/local.conf file is intended to be used
11         in conjunction with the freetype-infinality subpixel hinting patch at
12         http://www.infinality.net/
13
14         - The rules assume that all Windows XP/Vista/7 fonts are installed.
15         - The rules assume that the most recent version(s) of the fonts are
16             installed.
17         - Windows, Apple, Google, and Linux fonts are included in the rules
18           along with other misc popular or useful fonts found on the web.
19         - Feel free to propose additions and changes to this file at:
20                 http://www.infinality.net/forum/
21                 -->
22
23         <!--
24
25
26         /********************************************************************
27         Changes for 2010-11-14
28         /********************************************************************
29
30         Added configuration for different rendering styles. These can be enabled by
31           uncommenting the style you want.  For instance, if you want your system
32           to look like Windows 98, uncomment that style, and make sure others
33           are commented out.  Obviously you'd want to have appropriate fonts
34           installed for that rendering style.  Aliases for different OS
35           fontsets will be added eventually.  The old default style is now
36           considered "Infinality" style.  Not all styles that are defined are
37           filled in yet- but "Apple" and anything above it are.
38
39         Due to the above, in combination with the prevalence of @font-face on
40           the web, I've made "Infinality" style rendering use autohint by
41           default, and only call out fonts that specifically should use TT
42           hinting.  The patched autohint will render more fonts, better, than
43           TT native hinting will.
44
45
46         /********************************************************************
47         Changes for 2010-10-22
48         /********************************************************************
49
50         Promoted Century Gothic, Arial Black and Calibri to Full TT subpixel hinting
51         Added Google fonts
52         Added Nimbus fonts
53         Added more Apple fonts
54         Replace Courier New with Apple's Courier - MUCH nicer result
55         Better comments to help new users understand what everything means
56         Reorganization of some rules
57         General Cleanup
58         Removed code for artificial oblique, as most distros have this in
59           /etc/fonts/conf.d/
60         Added nonlatin font alias preferences that favor MS fonts, which have the
61           best hinting AFAICT. If you have all Windows Vista/7 fonts installed,
62           www.wikipedia.org should look pretty nice.
63
64         /********************************************************************
65         Changes for 2010-10-03
66         /********************************************************************
67
68         Promoted Geneva, Geneva CY to Full TT subpixel hinting.
69         Added an alias for "Trebuchet" to point to "Trebuchet MS"
70         Minor comment updates
71
72         -->
73
74
75         <match target="pattern">
76                 <!-- Choose an OS Style.  This affects how everything is applied -->
77
78                 <!-- A Customized combination of things, similar to Windows 7 -->
79                 <edit name="rendering_style" target="pattern">
80                         <string>Infinality</string>
81                 </edit>
82                 <edit name="rendering_style" target="font">
83                         <string>Infinality</string>
84                 </edit>
85
86                 <!--
87                 <edit name="rendering_style" target="pattern">
88                         <string>Windows 7</string>
89                 </edit>
90                 <edit name="rendering_style" target="font">
91                         <string>Windows 7</string>
92                 </edit>
93                 -->
94
95                 <!--
96                 <edit name="rendering_style" target="pattern">
97                         <string>Windows XP</string>
98                 </edit>
99                 <edit name="rendering_style" target="font">
100                         <string>Windows XP</string>
101                 </edit>
102                 -->
103
104                 <!--
105                 <edit name="rendering_style" target="pattern">
106                         <string>Windows 98</string>
107                 </edit>
108                 <edit name="rendering_style" target="font">
109                         <string>Windows 98</string>
110                 </edit>
111                 -->
112
113                 <!--
114                 <edit name="rendering_style" target="pattern">
115                         <string>Apple</string>
116                 </edit>
117                 <edit name="rendering_style" target="font">
118                         <string>Apple</string>
119                 </edit>
120                 -->
121
122
123                 <!-- THE BELOW STYLES ARE NOT WELL FILLED-IN YET -->
124
125                 <!--
126                 <edit name="rendering_style" target="pattern">
127                         <string>No Replacements</string>
128                 </edit>
129                 <edit name="rendering_style" target="font">
130                         <string>No Replacements</string>
131                 </edit>
132                 -->
133
134                 <!--
135                 <edit name="rendering_style" target="pattern">
136                         <string>Linux</string>
137                 </edit>
138                 <edit name="rendering_style" target="font">
139                         <string>Linux</string>
140                 </edit>
141                 -->
142
143                 <!--
144                 <edit name="rendering_style" target="pattern">
145                         <string>Fedora Linux</string>
146                 </edit>
147                 <edit name="rendering_style" target="font">
148                         <string>Fedora Linux</string>
149                 </edit>
150                 -->
151
152                 <!-- Create your own -->
153                 <!--
154                 <edit name="rendering_style" target="pattern">
155                         <string>Your Own Style</string>
156                 </edit>
157                 <edit name="rendering_style" target="font">
158                         <string>Your Own Style</string>
159                 </edit>
160                 -->
161
162                 <!-- Forces certain family replacements - NOT IMPLEMENTED YET -->
163                 <!--
164                 <edit name="style_settings">
165                         <string>Forced</string>
166                 </edit>
167                 -->
168
169         </match>
170
171         <!-- ********************  BITMAP / OUTLINE  **********************  -->
172
173         <!-- Prevent gnome from using embedded bitmaps in fonts like Calibri -->
174         <match target="font" >
175                 <test name="rendering_style" qual="any" >
176                         <string>Infinality</string>
177                         <string>Windows 7</string>
178                         <string>Windows XP</string>
179                         <string>Apple</string>
180                 </test>
181                 <edit name="embeddedbitmap" mode="assign">
182                         <bool>false</bool>
183                 </edit>
184         </match>
185
186         <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
187         <match target="font" >
188                 <test name="rendering_style" qual="any" >
189                         <string>Infinality</string>
190                         <string>Windows 7</string>
191                         <string>Windows XP</string>
192                         <string>Apple</string>
193                 </test>
194                 <selectfont>
195                         <rejectfont>
196                                 <pattern>
197                                         <patelt name="scalable" >
198                                                 <bool>false</bool>
199                                         </patelt>
200                                 </pattern>
201                         </rejectfont>
202                 </selectfont>
203         </match>
204
205         <!-- Substitute truetype fonts for bitmap ones -->
206         <match target="pattern" >
207                 <test name="rendering_style" qual="any" >
208                         <string>Infinality</string>
209                         <string>Windows 7</string>
210                         <string>Windows XP</string>
211                         <string>Apple</string>
212                 </test>
213                 <edit name="prefer_outline" >
214                         <bool>true</bool>
215                 </edit>
216         </match>
217
218         <!-- **************************** ALIASES **********************  -->
219
220         <!-- Uncomment 1 of the 3 below for default fonts -->
221         <!-- Default fonts - Microsoft Appearance -->
222         <match target="font" >
223                 <test name="rendering_style" qual="any" >
224                         <string>Infinality</string>
225                         <string>Windows 7</string>
226                         <string>Windows XP</string>
227                         <string>Windows 98</string>
228                 </test>
229                 <alias>
230                         <family>sans</family>
231                         <default>
232                                 <family>Arial</family>
233                         </default>
234                 </alias>
235                 <alias>
236                         <family>sans-serif</family>
237                         <default>
238                                 <family>Arial</family>
239                         </default>
240                 </alias>
241                 <alias>
242                         <family>serif</family>
243                         <default>
244                                 <family>Times New Roman</family>
245                         </default>
246                 </alias>
247         </match>
248
249         <!-- Default fonts - Apple Appearance -->
250         <match target="font" >
251                 <test name="rendering_style" qual="any" >
252                         <string>Apple</string>
253                 </test>
254                 <alias>
255                         <family>sans</family>
256                         <default>
257                                 <family>Lucida Grande</family>
258                         </default>
259                 </alias>
260
261                 <alias>
262                         <family>sans-serif</family>
263                         <default>
264                                 <family>Lucida Grande</family>
265                         </default>
266                 </alias>
267
268                 <alias>
269                         <family>serif</family>
270                         <default>
271                                 <family>Times</family>
272                         </default>
273                 </alias>
274         </match>
275
276         <!-- Default fonts - Linux Appearance -->
277         <!-- this is handled by default fontconfig rules -->
278
279
280         <!-- These MS aliases typically are used in user interfaces -->
281         <!-- You will mostly run into fonts with these names in WINE programs -->
282         <!-- Uncomment 1 of the below for these UI fonts -->
283
284         <!-- WINE UI fonts - Microsoft Windows Vista/7 Appearance -->
285
286         <match target="font" >
287                 <test name="rendering_style" qual="any" >
288                         <string>Infinality</string>
289                         <string>Windows 7</string>
290                 </test>
291                 <alias binding="same">
292                         <family>System</family>
293                         <accept>
294                                 <family>Segoe UI</family>
295                         </accept>
296                 </alias>
297                 <alias binding="same">
298                         <family>MS Shell Dlg</family>
299                         <accept>
300                                 <family>Segoe UI</family>
301                         </accept>
302                 </alias>
303                 <alias binding="same">
304                         <family>MS Sans Serif</family>
305                         <accept>
306                                 <family>Segoe UI</family>
307                         </accept>
308                 </alias>
309         </match>
310
311         <!-- WINE UI fonts - Microsoft Windows 98/XP Appearance -->
312         <!-- For Win 98, make sure font smoothing is DISABLED within WINE:
313                 wget http://files.polosatus.ru/winefontssmoothing_en.sh
314                 sh winefontssmoothing_en.sh
315         -->
316         <match target="font" >
317                 <test name="rendering_style" qual="any" >
318                         <string>Windows 98</string>
319                 </test>
320                 <alias binding="same">
321                         <family>System</family>
322                         <accept>
323                                 <family>Microsoft Sans Serif</family>
324                         </accept>
325                 </alias>
326                 <alias binding="same">
327                         <family>MS Shell Dlg</family>
328                         <accept>
329                                 <family>Microsoft Sans Serif</family>
330                         </accept>
331                 </alias>
332                 <alias binding="same">
333                         <family>MS Sans Serif</family>
334                         <accept>
335                                 <family>Microsoft Sans Serif</family>
336                         </accept>
337                 </alias>
338         </match>
339
340         <match target="font" >
341                 <test name="rendering_style" qual="any" >
342                         <string>Windows XP</string>
343                 </test>
344                 <alias binding="same">
345                         <family>System</family>
346                         <accept>
347                                 <family>Tahoma</family>
348                         </accept>
349                 </alias>
350                 <alias binding="same">
351                         <family>MS Shell Dlg</family>
352                         <accept>
353                                 <family>Tahoma</family>
354                         </accept>
355                 </alias>
356                 <alias binding="same">
357                         <family>MS Sans Serif</family>
358                         <accept>
359                                 <family>Tahoma</family>
360                         </accept>
361                 </alias>
362         </match>
363
364         <!-- WINE UI fonts - Apple Appearance -->
365         <match target="font" >
366                 <test name="rendering_style" qual="any" >
367                         <string>Apple</string>
368                 </test>
369                 <alias binding="same">
370                         <family>System</family>
371                         <accept>
372                                 <family>Lucida Grande</family>
373                         </accept>
374                 </alias>
375                 <alias binding="same">
376                         <family>MS Shell Dlg</family>
377                         <accept>
378                                 <family>Lucida Grande</family>
379                         </accept>
380                 </alias>
381                 <alias binding="same">
382                         <family>MS Sans Serif</family>
383                         <accept>
384                                 <family>Lucida Grande</family>
385                         </accept>
386                 </alias>
387         </match>
388
389         <!-- WINE UI fonts - Linux Appearance -->
390         <match target="font" >
391                 <test name="rendering_style" qual="any" >
392                         <string>Linux</string>
393                 </test>
394                 <alias binding="same">
395                         <family>System</family>
396                         <accept>
397                                 <family>DejaVu Sans</family>
398                         </accept>
399                 </alias>
400                 <alias binding="same">
401                         <family>MS Shell Dlg</family>
402                         <accept>
403                                 <family>DejaVu Sans</family>
404                         </accept>
405                 </alias>
406                 <alias binding="same">
407                         <family>MS Sans Serif</family>
408                         <accept>
409                                 <family>DejaVu Sans</family>
410                         </accept>
411                 </alias>
412         </match>
413
414         <!-- Establish priorities for non-Latin fonts -->
415         <!-- http://en.wikipedia.org/wiki/List_of_Microsoft_Windows_fonts -->
416         <!-- Uncomment 1 of the below for these UI fonts -->
417
418         <!-- Non-latin fonts - Microsoft Windows Vista/7 Appearance -->
419         <match target="font" >
420                 <test name="rendering_style" qual="any" >
421                         <string>Infinality</string>
422                         <string>Windows 7</string>
423                         <string>Windows XP</string>
424                         <string>Windows 98</string>
425                 </test>
426                 <alias>
427                         <family>serif</family>
428                         <prefer>
429                                 <family>Times New Roman</family>
430                                 <family>Batang</family>
431                                 <family>DFKai-SB</family>
432                                 <family>EucrosiaUPC</family>
433                                 <family>JasmineUPC</family>
434                                 <family>KaiTi</family>
435                                 <family>Kartika</family>
436                                 <family>KodchiangUPC</family>
437                                 <family>MingLiU</family>
438                                 <family>MS Mincho</family>
439                                 <family>SimSun</family>
440                                 <family>Sylfaen</family>
441                                 <family>DaunPenh</family>
442                                 <family>MV Boli</family>
443                                 <family>Iskoola Pota</family>
444                                 <family>Latha</family>
445                                 <family>Microsoft Himalaya</family>
446                                 <family>Mongolian Baiti</family>
447                                 <family>Shruti</family>
448                                 <family>Cardo</family>
449                                 <family>MPH 2B Damase</family>
450                         </prefer>
451                 </alias>
452                 <alias>
453                         <family>sans-serif</family>
454                         <prefer>
455                                 <family>DejaVu Sans</family>
456                                 <family>Arial</family>
457                                 <family>Meiryo</family>
458                                 <family>Arabic Typesetting</family>
459                                 <family>DokChampa</family>
460                                 <family>Malgun Gothic</family>
461                                 <family>Estrangelo Edessa</family>
462                                 <family>Gautami</family>
463                                 <family>Iskoola Pota</family>
464                                 <family>Microsoft YaHei</family>
465                                 <family>Mangal</family>
466                                 <family>Microsoft JhengHei</family>
467                                 <family>Vrinda</family>
468                                 <family>Plantagenet Cherokee</family>
469                                 <family>Raavi</family>
470                                 <family>Nyala</family>
471                                 <family>Tunga</family>
472                                 <family>Kartika</family>
473                                 <family>MV Boli</family>
474                                 <family>DaunPenh</family>
475                                 <family>Iskoola Pota</family>
476                                 <family>Latha</family>
477                                 <family>Microsoft Himalaya</family>
478                                 <family>Mongolian Baiti</family>
479                                 <family>Shruti</family>
480                                 <family>Skeirs</family>
481                                 <family>Cardo</family>
482                                 <family>MPH 2B Damase</family>
483                                 <family>Tahoma</family>
484                                 <family>Arial Unicode MS</family>
485                         </prefer>
486                 </alias>
487                 <alias>
488                         <family>monospace</family>
489                         <prefer>
490                                 <family>DejaVu Sans Mono</family>
491                                 <family>Consolas</family>
492                                 <family>Inconsolata</family>
493                                 <family>Andale Mono</family>
494                                 <family>Courier New</family>
495                                 <family>Microsoft JhengHei</family>
496                                 <family>Microsoft YaHei</family>
497                                 <family>MPH 2B Damase</family>
498                         </prefer>
499                 </alias>
500                 <alias>
501                         <family>fantasy</family>
502                         <prefer>
503                                 <family>Impact</family>
504                                 <family>Copperplate Gothic Std</family>
505                                 <family>Cooper Std</family>
506                                 <family>Bauhaus Std</family>
507                         </prefer>
508                 </alias>
509                 <alias>
510                         <family>cursive</family>
511                         <prefer>
512                                 <family>ITC Zapf Chancery Std</family>
513                                 <family>Zapfino</family>
514                                 <family>Comic Sans MS</family>
515                         </prefer>
516                 </alias>
517         </match>
518
519         <!-- ************************** REPLACEMENTS  **********************  -->
520
521         <!-- Replaces sans, sans-serif, serif with a specific font preference -->
522         <!-- This is also set in aliases above -->
523
524         <!-- Microsoft style - sans, sans-serif, serif -->
525         <match target="font" >
526                 <test name="rendering_style" qual="any" >
527                         <string>Infinality</string>
528                         <string>Windows 7</string>
529                         <string>Windows XP</string>
530                         <string>Windows 98</string>
531                 </test>
532                 <test name="family" qual="any" >
533                         <string>sans</string>
534                 </test>
535                 <edit mode="assign" name="family" >
536                         <string>Arial</string>
537                 </edit>
538         </match>
539         <match target="font" >
540                 <test name="rendering_style" qual="any" >
541                         <string>Infinality</string>
542                         <string>Windows 7</string>
543                         <string>Windows XP</string>
544                         <string>Windows 98</string>
545                 </test>
546                 <test name="family" qual="any" >
547                         <string>sans-serif</string>
548                 </test>
549                 <edit mode="assign" name="family" >
550                         <string>Arial</string>
551                 </edit>
552         </match>
553         <match target="font" >
554                 <test name="rendering_style" qual="any" >
555                         <string>Infinality</string>
556                         <string>Windows 7</string>
557                         <string>Windows XP</string>
558                         <string>Windows 98</string>
559                 </test>
560                 <test name="family" qual="any" >
561                         <string>serif</string>
562                 </test>
563                 <edit mode="assign" name="family" >
564                         <string>Times New Roman</string>
565                 </edit>
566         </match>
567
568         <!-- Apple style - sans, sans-serif, serif -->
569         <match target="font" >
570                 <test name="rendering_style" qual="any" >
571                         <string>Apple</string>
572                 </test>
573                 <test name="family" qual="any" >
574                         <string>sans</string>
575                 </test>
576                 <edit mode="assign" name="family" >
577                         <string>Lucida Grande</string>
578                 </edit>
579         </match>
580         <match target="font" >
581                 <test name="rendering_style" qual="any" >
582                         <string>Apple</string>
583                 </test>
584                 <test name="family" qual="any" >
585                         <string>sans-serif</string>
586                 </test>
587                 <edit mode="assign" name="family" >
588                         <string>Lucida Grande</string>
589                 </edit>
590         </match>
591         <match target="font" >
592                 <test name="rendering_style" qual="any" >
593                         <string>Apple</string>
594                 </test>
595                 <test name="family" qual="any" >
596                         <string>serif</string>
597                 </test>
598                 <edit mode="assign" name="family" >
599                         <string>Times</string>
600                 </edit>
601         </match>
602
603
604
605         <!-- Replace these common poorly hinted fonts with Arial -->
606         <!-- Adjust as necessary -->
607
608         <!-- Microsoft Appearance - Poorly Hinted Fonts -->
609         <match target="font" >
610                 <test name="rendering_style" qual="any" >
611                         <string>Infinality</string>
612                         <string>Windows 7</string>
613                         <string>Windows XP</string>
614                         <string>Windows 98</string>
615                 </test>
616                 <test name="family" qual="any" >
617                         <string>Nimbus Sans</string>
618                 </test>
619                 <edit mode="assign" name="family" >
620                         <string>Arial</string>
621                 </edit>
622         </match>
623         <match target="pattern" name="family">
624                 <test name="rendering_style" qual="any" >
625                         <string>Infinality</string>
626                         <string>Windows 7</string>
627                         <string>Windows XP</string>
628                         <string>Windows 98</string>
629                 </test>
630                 <test name="family" qual="any" >
631                         <string>Nimbus Sans</string>
632                 </test>
633                 <edit binding="strong" mode="prepend" name="family" >
634                         <string>Arial</string>
635                 </edit>
636         </match>
637         <match target="font" >
638                 <test name="rendering_style" qual="any" >
639                         <string>Infinality</string>
640                         <string>Windows 7</string>
641                         <string>Windows XP</string>
642                         <string>Windows 98</string>
643                 </test>
644                 <test name="family" qual="any" >
645                         <string>Nimbus Sans L</string>
646                 </test>
647                 <edit mode="assign" name="family" >
648                         <string>Arial</string>
649                 </edit>
650         </match>
651         <match target="pattern" name="family">
652                 <test name="rendering_style" qual="any" >
653                         <string>Infinality</string>
654                         <string>Windows 7</string>
655                         <string>Windows XP</string>
656                         <string>Windows 98</string>
657                 </test>
658                 <test name="family" qual="any" >
659                         <string>Nimbus Sans L</string>
660                 </test>
661                 <edit binding="strong" mode="prepend" name="family" >
662                         <string>Arial</string>
663                 </edit>
664         </match>
665
666         <!-- Apple Appearance - Poorly Hinted Fonts -->
667         <match target="font" >
668                 <test name="rendering_style" qual="any" >
669                         <string>Apple</string>
670                 </test>
671                 <test name="family" qual="any" >
672                         <string>Nimbus Sans</string>
673                 </test>
674                 <edit mode="assign" name="family" >
675                         <string>Helvetica Neue</string>
676                 </edit>
677         </match>
678         <match target="pattern" name="family">
679                 <test name="rendering_style" qual="any" >
680                         <string>Apple</string>
681                 </test>
682                 <test name="family" qual="any" >
683                         <string>Nimbus Sans</string>
684                 </test>
685                 <edit binding="strong" mode="prepend" name="family" >
686                         <string>Helvetica Neue</string>
687                 </edit>
688         </match>
689         <match target="font" >
690                 <test name="rendering_style" qual="any" >
691                         <string>Apple</string>
692                 </test>
693                 <test name="family" qual="any" >
694                         <string>Nimbus Sans L</string>
695                 </test>
696                 <edit mode="assign" name="family" >
697                         <string>Helvetica Neue</string>
698                 </edit>
699         </match>
700         <match target="pattern" name="family">
701                 <test name="family" qual="any" >
702                         <string>Nimbus Sans L</string>
703                 </test>
704                 <edit binding="strong" mode="prepend" name="family" >
705                         <string>Helvetica Neue</string>
706                 </edit>
707         </match>
708
709         <!-- This replacement handles the fonts here, which I recommend
710         in place of the default Terminus bitmap files:
711         http://files.ax86.net/terminus-ttf/4.30/
712
713         Note that Terminus will only look good at the pixel sizes that
714         it was designed for!
715         -->
716         <match target="font" >
717                 <test name="family" qual="any" >
718                         <string>Terminus</string>
719                 </test>
720                 <edit mode="assign" name="family" >
721                         <string>Terminus (ttf)</string>
722                 </edit>
723         </match>
724         <match target="pattern" name="family">
725                 <test name="family" qual="any" >
726                         <string>Terminus</string>
727                 </test>
728                 <edit binding="strong" mode="prepend" name="family" >
729                         <string>Terminus (ttf)</string>
730                 </edit>
731         </match>
732
733         <!-- Replace Helvetica with Arial -->
734         <!-- Currently Helvetica has cap height issues -->
735
736         <!-- Microsoft Appearance - Helvetica -->
737         <match target="pattern" name="family">
738                 <test name="rendering_style" qual="any" >
739                         <string>Infinality</string>
740                         <string>Windows 7</string>
741                         <string>Windows XP</string>
742                         <string>Windows 98</string>
743                 </test>
744                 <test name="family" qual="any" >
745                         <string>Helvetica</string>
746                 </test>
747                 <edit binding="strong" mode="prepend" name="family" >
748                         <string>Arial</string>
749                 </edit>
750         </match>
751         <match target="font" >
752                 <test name="rendering_style" qual="any" >
753                         <string>Infinality</string>
754                         <string>Windows 7</string>
755                         <string>Windows XP</string>
756                         <string>Windows 98</string>
757                 </test>
758                 <test name="family" qual="any" >
759                         <string>Helvetica</string>
760                 </test>
761                 <edit mode="assign" name="family" >
762                         <string>Arial</string>
763                 </edit>
764         </match>
765
766         <!-- Linux Appearance - Helvetica -->
767         <match target="pattern" name="family">
768                 <test name="rendering_style" qual="any" >
769                         <string>Linux</string>
770                 </test>
771                 <test name="family" qual="any" >
772                         <string>Helvetica</string>
773                 </test>
774                 <edit binding="strong" mode="prepend" name="family" >
775                         <string>Liberation Sans</string>
776                 </edit>
777         </match>
778         <match target="font" >
779                 <test name="rendering_style" qual="any" >
780                         <string>Linux</string>
781                 </test>
782                 <test name="family" qual="any" >
783                         <string>Helvetica</string>
784                 </test>
785                 <edit mode="assign" name="family" >
786                         <string>Liberation Sans</string>
787                 </edit>
788         </match>
789
790         <!-- Replace Helvetica Neue with Arial -->
791         <!-- Currently Helvetica Neue has cap height issues -->
792
793         <!-- Microsoft Appearance - Helvetica Neue -->
794         <match target="pattern" name="family">
795                 <test name="rendering_style" qual="any" >
796                         <string>Infinality</string>
797                         <string>Windows 7</string>
798                         <string>Windows XP</string>
799                         <string>Windows 98</string>
800                 </test>
801                 <test name="family" qual="any" >
802                         <string>Helvetica Neue</string>
803                 </test>
804                 <edit binding="strong" mode="prepend" name="family" >
805                         <string>Arial</string>
806                 </edit>
807         </match>
808         <match target="font" >
809                 <test name="rendering_style" qual="any" >
810                         <string>Infinality</string>
811                         <string>Windows 7</string>
812                         <string>Windows XP</string>
813                         <string>Windows 98</string>
814                 </test>
815                 <test name="family" qual="any" >
816                         <string>Helvetica Neue</string>
817                 </test>
818                 <edit mode="assign" name="family" >
819                         <string>Arial</string>
820                 </edit>
821         </match>
822
823         <!-- Linux Appearance - Helvetica Neue -->
824         <match target="pattern" name="family">
825                 <test name="rendering_style" qual="any" >
826                         <string>Linux</string>
827                 </test>
828                 <test name="family" qual="any" >
829                         <string>Helvetica Neue</string>
830                 </test>
831                 <edit binding="strong" mode="prepend" name="family" >
832                         <string>Liberation Sans</string>
833                 </edit>
834         </match>
835         <match target="font" >
836                 <test name="rendering_style" qual="any" >
837                         <string>Linux</string>
838                 </test>
839                 <test name="family" qual="any" >
840                         <string>Helvetica Neue</string>
841                 </test>
842                 <edit mode="assign" name="family" >
843                         <string>Liberation Sans</string>
844                 </edit>
845         </match>
846
847
848         <!-- Replace "Arial" with black weight, with font "Arial Black" -->
849         <match target="pattern">
850                 <test name="family" compare="eq" target="default">
851                         <string>Arial</string>
852                 </test>
853                 <test compare="more" name="weight" >
854                         <const>bold</const>
855                 </test>
856                 <edit name="family" mode="prepend" binding="same">
857                         <string>Arial Black</string>
858                 </edit>
859                 <edit name="weight" mode="assign">
860                         <const>bold</const>
861                 </edit>
862         </match>
863
864         <!-- Replace 'Nimbus Mono L' with Courier New -->
865         <match target="font" >
866                 <test name="family" qual="any" >
867                         <string>Nimbus Mono L</string>
868                 </test>
869                 <edit mode="assign" name="family" >
870                         <string>Courier New</string>
871                 </edit>
872         </match>
873         <match target="pattern" name="family" >
874                 <test name="family" compare="eq" target="default">
875                         <string>Nimbus Mono L</string>
876                 </test>
877                 <edit binding="strong" mode="prepend" name="family" >
878                         <string>Courier New</string>
879                 </edit>
880         </match>
881
882         <!-- Replace "Lucida Sans Unicode" bold with Lucida Grande bold weight -->
883         <match target="pattern">
884                 <test name="family" compare="eq" target="default">
885                         <string>Lucida Sans Unicode</string>
886                 </test>
887                 <test compare="more" name="weight" >
888                         <const>medium</const>
889                 </test>
890                 <edit name="family" mode="prepend" binding="same">
891                         <string>Lucida Grande</string>
892                 </edit>
893                 <edit name="weight" mode="assign">
894                         <const>bold</const>
895                 </edit>
896         </match>
897
898         <!-- Microsoft Appearance - Courier -->
899         <match target="pattern">
900                 <test name="rendering_style" qual="any" >
901                         <string>Windows 7</string>
902                         <string>Windows XP</string>
903                         <string>Windows 98</string>
904                 </test>
905                 <test name="family" compare="eq" target="default">
906                         <string>Courier</string>
907                 </test>
908                 <edit name="family" mode="prepend" binding="same">
909                         <string>Courier New</string>
910                 </edit>
911         </match>
912         <match target="font" >
913                 <test name="rendering_style" qual="any" >
914                         <string>Windows 7</string>
915                         <string>Windows XP</string>
916                         <string>Windows 98</string>
917                 </test>
918                 <test name="family" qual="any" >
919                         <string>Courier</string>
920                 </test>
921                 <edit mode="assign" name="family" >
922                         <string>Courier New</string>
923                 </edit>
924         </match>
925
926         <!-- NOTE: Apple's Courier renders much nicer than Courier New -->
927         <!-- Apple Appearance - Courier -->
928         <match target="pattern">
929                 <test name="rendering_style" qual="any" >
930                         <string>Apple</string>
931                         <string>Infinality</string>
932                 </test>
933                 <test name="family" compare="eq" target="default">
934                         <string>Courier New</string>
935                 </test>
936                 <edit name="family" mode="prepend" binding="same">
937                         <string>Courier</string>
938                 </edit>
939         </match>
940         <match target="font" >
941                 <test name="rendering_style" qual="any" >
942                         <string>Apple</string>
943                         <string>Infinality</string>
944                 </test>
945                 <test name="family" qual="any" >
946                         <string>Courier New</string>
947                 </test>
948                 <edit mode="assign" name="family" >
949                         <string>Courier</string>
950                 </edit>
951         </match>
952
953         <!-- Microsoft Appearance:  Replace 'Times' with Times New Roman -->
954         <match target="pattern" name="family" >
955                 <test name="rendering_style" qual="any" >
956                         <string>Infinality</string>
957                         <string>Windows 7</string>
958                         <string>Windows XP</string>
959                         <string>Windows 98</string>
960                 </test>
961                 <test name="family" qual="any" >
962                         <string>Times</string>
963                 </test>
964                 <edit binding="strong" mode="prepend" name="family" >
965                         <string>Times New Roman</string>
966                 </edit>
967         </match>
968         <match target="font" >
969                 <test name="rendering_style" qual="any" >
970                         <string>Infinality</string>
971                         <string>Windows 7</string>
972                         <string>Windows XP</string>
973                         <string>Windows 98</string>
974                 </test>
975                 <test name="family" qual="any" >
976                         <string>Times</string>
977                 </test>
978                 <edit mode="assign" name="family" >
979                         <string>Times New Roman</string>
980                 </edit>
981         </match>
982
983
984         <!-- Fix poorly specified font family names -->
985
986         <match target="pattern" name="family">
987                 <test name="family" qual="any" >
988                         <string>Trebuchet</string>
989                 </test>
990                 <edit binding="strong" mode="prepend" name="family" >
991                         <string>Trebuchet MS</string>
992                 </edit>
993         </match>
994         <match target="font" >
995                 <test name="family" qual="any" >
996                         <string>Trebuchet</string>
997                 </test>
998                 <edit mode="assign" name="family" >
999                         <string>Trebuchet MS</string>
1000                 </edit>
1001         </match>
1002
1003         <match target="pattern" name="family" >
1004                 <test name="family" qual="any" >
1005                         <string>Palatino</string>
1006                 </test>
1007                 <edit binding="strong" mode="prepend" name="family" >
1008                         <string>Palatino Linotype</string>
1009                 </edit>
1010         </match>
1011         <match target="font" >
1012                 <test name="family" qual="any" >
1013                         <string>Palatino</string>
1014                 </test>
1015                 <edit mode="assign" name="family" >
1016                         <string>Palatino Linotype</string>
1017                 </edit>
1018         </match>
1019
1020         <match target="pattern" name="family" >
1021                 <test name="family" qual="any" >
1022                         <string>Lucida Sans</string>
1023                 </test>
1024                 <edit binding="strong" mode="prepend" name="family" >
1025                         <string>Lucida Grande</string>
1026                 </edit>
1027         </match>
1028         <match target="font" >
1029                 <test name="family" qual="any" >
1030                         <string>Lucida Sans</string>
1031                 </test>
1032                 <edit mode="assign" name="family" >
1033                         <string>Lucida Grande</string>
1034                 </edit>
1035         </match>
1036
1037         <!-- ********************  BASE SETTINGS  **********************  -->
1038
1039         <!-- These are the base settings for all rendered fonts.
1040         We modify them for specific fonts later. -->
1041
1042         <match target="font" >
1043                 <test name="rendering_style" qual="any" >
1044                         <string>Infinality</string>
1045                 </test>
1046                 <edit mode="assign" name="rgba" >
1047                         <const>rgb</const>
1048                 </edit>
1049                 <edit mode="assign" name="hinting" >
1050                         <bool>true</bool>
1051                 </edit>
1052                 <edit mode="assign" name="autohint" >
1053                         <bool>true</bool>
1054                 </edit>
1055                 <edit mode="assign" name="antialias" >
1056                         <bool>true</bool>
1057                 </edit>
1058                 <edit mode="assign" name="hintstyle" >
1059                         <const>hintslight</const>
1060                 </edit>
1061                 <edit name="lcdfilter" mode="assign">
1062                         <const>lcddefault</const>
1063                 </edit>
1064         </match>
1065
1066         <match target="font" >
1067                 <test name="rendering_style" qual="any">
1068                         <string>Windows 7</string>
1069                 </test>
1070                 <edit mode="assign" name="rgba" >
1071                         <const>rgb</const>
1072                 </edit>
1073                 <edit mode="assign" name="hinting" >
1074                         <bool>true</bool>
1075                 </edit>
1076                 <edit mode="assign" name="autohint" >
1077                         <bool>false</bool>
1078                 </edit>
1079                 <edit mode="assign" name="antialias" >
1080                         <bool>true</bool>
1081                 </edit>
1082                 <edit mode="assign" name="hintstyle" >
1083                         <const>hintfull</const>
1084                 </edit>
1085                 <edit name="lcdfilter" mode="assign">
1086                         <const>lcddefault</const>
1087                 </edit>
1088         </match>
1089
1090         <match target="font" >
1091                 <test name="rendering_style" qual="any">
1092                         <string>Windows XP</string>
1093                 </test>
1094                 <edit mode="assign" name="rgba" >
1095                         <const>rgb</const>
1096                 </edit>
1097                 <edit mode="assign" name="hinting" >
1098                         <bool>true</bool>
1099                 </edit>
1100                 <edit mode="assign" name="autohint" >
1101                         <bool>false</bool>
1102                 </edit>
1103                 <edit mode="assign" name="antialias" >
1104                         <bool>true</bool>
1105                 </edit>
1106                 <edit mode="assign" name="hintstyle" >
1107                         <const>hintfull</const>
1108                 </edit>
1109                 <edit name="lcdfilter" mode="assign">
1110                         <const>lcddefault</const>
1111                 </edit>
1112         </match>
1113
1114         <match target="font" >
1115                 <test name="rendering_style" qual="any">
1116                         <string>Windows 98</string>
1117                 </test>
1118                 <edit mode="assign" name="rgba" >
1119                         <const>rgb</const>
1120                 </edit>
1121                 <edit mode="assign" name="hinting" >
1122                         <bool>true</bool>
1123                 </edit>
1124                 <edit mode="assign" name="autohint" >
1125                         <bool>false</bool>
1126                 </edit>
1127                 <edit mode="assign" name="antialias" >
1128                         <bool>false</bool>
1129                 </edit>
1130                 <edit mode="assign" name="hintstyle" >
1131                         <const>hintfull</const>
1132                 </edit>
1133                 <edit name="lcdfilter" mode="assign">
1134                         <const>lcddefault</const>
1135                 </edit>
1136         </match>
1137
1138         <match target="font" >
1139                 <test name="rendering_style" qual="any">
1140                         <string>Apple</string>
1141                 </test>
1142                 <edit mode="assign" name="rgba" >
1143                         <const>rgb</const>
1144                 </edit>
1145                 <edit mode="assign" name="hinting" >
1146                         <bool>false</bool>
1147                 </edit>
1148                 <edit mode="assign" name="autohint" >
1149                         <bool>false</bool>
1150                 </edit>
1151                 <edit mode="assign" name="antialias" >
1152                         <bool>true</bool>
1153                 </edit>
1154                 <edit mode="assign" name="hintstyle" >
1155                         <const>hintnone</const>
1156                 </edit>
1157                 <edit name="lcdfilter" mode="assign">
1158                         <const>lcddefault</const>
1159                 </edit>
1160         </match>
1161
1162         <match target="font" >
1163                 <test name="rendering_style" qual="any">
1164                         <string>Fedora Linux</string>
1165                 </test>
1166                 <edit mode="assign" name="rgba" >
1167                         <const>none</const>
1168                 </edit>
1169                 <edit mode="assign" name="hinting" >
1170                         <bool>true</bool>
1171                 </edit>
1172                 <edit mode="assign" name="autohint" >
1173                         <bool>true</bool>
1174                 </edit>
1175                 <edit mode="assign" name="antialias" >
1176                         <bool>true</bool>
1177                 </edit>
1178                 <edit mode="assign" name="hintstyle" >
1179                         <const>hintfull</const>
1180                 </edit>
1181                 <edit name="lcdfilter" mode="assign">
1182                         <const>lcdnone</const>
1183                 </edit>
1184         </match>
1185
1186
1187         <!-- ********************  FONT GROUPS  **********************  -->
1188
1189         <!-- Full Subpixel BCI for these fonts.  (Cleartype-like, circa Windows XP/Vista/7) -->
1190         <!-- These will take advantage of subpixel hinting if infinality patch installed. -->
1191         <!-- This should only be used by fonts that contain TrueType instructions, -->
1192         <!-- otherwise fonts will appear blurry. -->
1193
1194         <match target="font" >
1195                 <test name="family" qual="any" >
1196                         <string>Andale Mono</string>
1197                         <string>Andalus</string>
1198                         <string>Angsana New</string>
1199                         <string>AngsanaUPC</string>
1200                         <string>Aquabase</string>
1201                         <string>Arial Black</string>
1202                         <string>Arial MT</string>
1203                         <string>Arial Narrow</string>
1204                         <string>Arial SF MT</string>
1205                         <string>Arial Unicode MS</string>
1206                         <string>Arial</string>
1207                         <string>ArialMT</string>
1208                         <string>Bitstream Vera Sans Mono</string>
1209                         <string>Bitstream Vera Sans</string>
1210                         <string>Bitstream Vera Serif</string>
1211                         <string>Book Antiqua</string>
1212                         <string>Bookman Old Style</string>
1213                         <string>Browallia New</string>
1214                         <string>BrowalliaUPC</string>
1215                         <string>Calibri</string>
1216                         <string>Cambria</string>
1217                         <string>Candara</string>
1218                         <string>Century Gothic</string>
1219                         <string>Chalkduster</string>
1220                         <string>Charcoal CY</string>
1221                         <string>Charcoal</string>
1222                         <string>Charis SIL</string>
1223                         <string>Chicago</string>
1224                         <string>Comic Sans MS</string>
1225                         <string>Consolas</string>
1226                         <string>Constantia</string>
1227                         <string>Copperplate</string>
1228                         <string>Corbel</string>
1229                         <string>Cordia New</string>
1230                         <string>CordiaUPC</string>
1231                         <string>Courier 10 Pitch</string>
1232                         <string>Courier New</string>
1233                         <string>Courier</string>
1234                         <string>Dark Courier</string>
1235                         <string>DejaVu LGC Sans Mono</string>
1236                         <string>DejaVu Sans Mono</string>
1237                         <string>DejaVu Sans</string>
1238                         <string>DejaVu Serif</string>
1239                         <string>Estrangelo Edessa</string>
1240                         <string>Euphemia</string>
1241                         <string>FrankRuehl</string>
1242                         <string>Franklin Gothic Medium</string>
1243                         <string>Futura</string>
1244                         <string>Georgia</string>                        
1245                         <string>Gotham Book</string>
1246                         <string>Gotham Light</string>
1247                         <string>Gotham Medium</string>
1248                         <string>Guatami</string>
1249                         <string>Impact</string>
1250                         <string>Latha</string>
1251                         <string>Levinim MT</string>
1252                         <string>Liberation Mono</string>
1253                         <string>Liberation Sans</string>
1254                         <string>Liberation Serif</string>
1255                         <string>Lucida Console</string>
1256                         <string>Lucida Grande</string>
1257                         <string>Lucida Sans Unicode</string>
1258                         <string>Luxi Mono</string>
1259                         <string>Malgun Gothic</string>
1260                         <string>Microsoft Himalaya</string>
1261                         <string>Microsoft JhengHei</string>
1262                         <string>Microsoft Sans Serif</string>
1263                         <string>Microsoft Uighur</string>
1264                         <string>Microsoft YaHei</string>
1265                         <string>Microsoft Yi Baiti</string>
1266                         <string>Miriam Fixed</string>
1267                         <string>Molengo</string>
1268                         <string>Monaco</string>
1269                         <string>Mongolian Baiti</string>
1270                         <string>MoolBoran</string>
1271                         <string>Narkisim</string>
1272                         <string>Nina</string>
1273                         <string>Nyala</string>
1274                         <string>Padauk</string>
1275                         <string>Palatino Linotype</string>
1276                         <string>Plantagenet Cherokee</string>
1277                         <string>Raavi</string>
1278                         <string>Segoe UI</string>
1279                         <string>Segoe UI Semibold</string>
1280                         <string>TITUS Cyberbit Basic</string>
1281                         <string>Tahoma</string>
1282                         <string>Times New Roman</string>
1283                         <string>Traditional Arabic</string>
1284                         <string>Trebuchet MS</string>
1285                         <string>Tunga</string>
1286                         <string>Verdana</string>
1287                         <string>Vrinda</string>
1288                         <string>Yanone Kaffeesatz</string>
1289                         
1290                         <string>Garamond</string>                       
1291                 </test>
1292                 <edit mode="assign" name="font_type" target="font">
1293                         <string>TT Instructed Font</string>
1294                 </edit>
1295                 <!--<edit mode="assign" name="hinting" >
1296                         <bool>true</bool>
1297                 </edit>
1298                 <edit mode="assign" name="autohint" >
1299                         <bool>false</bool>
1300                 </edit>
1301                 <edit mode="assign" name="antialias" >
1302                         <bool>true</bool>
1303                       </edit>
1304                 <edit mode="assign" name="hintstyle" >
1305                         <const>hintfull</const>
1306                 </edit>-->
1307         </match>
1308
1309         <match target="font" >
1310                 <test name="font_type" qual="any" >
1311                         <string>TT Instructed Font</string>
1312                 </test>
1313                 <test name="rendering_style" qual="any" >
1314                         <string>Infinality</string>
1315                         <string>Windows 7</string>
1316                         <string>Windows XP</string>
1317                 </test>
1318                 <edit mode="assign" name="antialias" >
1319                         <bool>true</bool>
1320                 </edit>
1321                 <edit mode="assign" name="hintstyle" >
1322                         <const>hintfull</const>
1323                 </edit>
1324                 <edit mode="assign" name="autohint" >
1325                         <bool>false</bool>
1326                 </edit>
1327         </match>
1328
1329         <match target="font" >
1330                 <test name="font_type" qual="any" >
1331                         <string>TT Instructed Font</string>
1332                 </test>
1333                 <test name="rendering_style" qual="any" >
1334                         <string>Windows 98</string>
1335                 </test>
1336                 <edit mode="assign" name="antialias" >
1337                         <bool>false</bool>
1338                 </edit>
1339                 <edit mode="assign" name="hintstyle" >
1340                         <const>hintfull</const>
1341                 </edit>
1342                 <edit mode="assign" name="autohint" >
1343                         <bool>false</bool>
1344                 </edit>
1345         </match>
1346
1347         <match target="font" >
1348                 <test name="font_type" qual="any" >
1349                         <string>TT Instructed Font</string>
1350                 </test>
1351                 <test name="rendering_style" qual="any" >
1352                         <string>Apple</string>
1353                 </test>
1354                 <edit mode="assign" name="antialias" >
1355                         <bool>true</bool>
1356                 </edit>
1357                 <edit mode="assign" name="hintstyle" >
1358                         <const>hintnone</const>
1359                 </edit>
1360                 <edit mode="assign" name="autohint" >
1361                         <bool>true</bool>
1362                 </edit>
1363         </match>
1364
1365
1366         <!-- Make these fonts use autohint slight hinting -->
1367         <!-- Makes only horizontal stems align to pixels.  Truer to glyph -->
1368         <match target="font" >
1369                 <test name="family" qual="any" >
1370                         <string>AR PL ShanHeiSun Uni</string>
1371                         <string>American Typewriter</string>
1372                         <string>Apple Chancery</string>
1373                         <string>Apple Garamond Light</string>
1374                         <string>Apple Garamond</string>
1375                         <string>AppleGothic</string>
1376                         <string>Apple Symbols</string>
1377                         <string>Arabic Typesetting</string>
1378                         <string>Baekmuk Gulim</string>
1379                         <string>Baskerville</string>
1380                         <string>Big Caslon</string>
1381                         <string>Bitstream Charter</string>
1382                         <string>BrushScript</string>
1383                         <string>Cantarell</string>
1384                         <string>CantarellRegular</string>
1385                         <string>Cantarell Regular</string>
1386                         <string>Cardo</string>
1387                         <string>Century Schoolbook L</string>
1388                         <string>Century</string>
1389                         <string>Charis SIL</string>
1390                         <string>Chalkboard</string>
1391                         <string>CMU Bright</string>
1392                         <string>Cochin</string>
1393                         <string>Comfortaa</string>
1394                         <string>Comfortaa Regular</string>
1395                         <string>ComfortaaRegular</string>
1396                         <string>Courier Std</string>
1397                         <string>Courier10 BT</string>
1398                         <string>Crimson Text</string>
1399                         <string>David</string>
1400                         <string>Delicious</string>
1401                         <string>Didot</string>
1402                         <string>DilenniaUPC</string>
1403                         <string>District</string>
1404                         <string>DokChampa</string>
1405                         <string>Droid Sans Mono</string>
1406                         <string>Droid Sans</string>
1407                         <string>Droid Serif</string>
1408                         <string>Dutch801 Rm BT</string>
1409                         <string>EucrosiaUPC</string>
1410                         <string>FreeMono</string>
1411                         <string>FreeSans</string>
1412                         <string>FreeSerif</string>
1413                         <string>FreesiaUPC</string>
1414                         <string>Frutiger LT Std</string>
1415                         <string>Frutiger Linotype</string>
1416                         <string>Frutiger-Normal</string>
1417                         <string>Gautami</string>
1418                         <string>Geneva CY</string>
1419                         <string>Geneva Regular</string>
1420                         <string>Geneva</string>
1421                         <string>Gentium</string>
1422                         <string>Gill Sans</string>
1423                         <string>Hard Gothic</string>
1424                         <string>Helvetica</string>
1425                         <string>Helvetica CY</string>
1426                         <string>Helvetica Neue</string>
1427                         <string>Herculanum</string>
1428                         <string>Hoefler Text</string>
1429                         <string>IM Fell</string>
1430                         <string>Inconsolata</string>
1431                         <string>IrisUPC</string>
1432                         <string>JasmineUPC</string>
1433                         <string>Jomolhari</string>
1434                         <string>Josefin Sans Std Light</string>
1435                         <string>Kai</string>
1436                         <string>Kalinga</string>
1437                         <string>KodchiangUPC</string>
1438                         <string>Laconic</string>
1439                         <string>Lacuna</string>
1440                         <string>Levenim MT</string>
1441                         <string>LilyUPC</string>
1442                         <string>LilyUPC</string>
1443                         <string>Linux Biolinum</string>
1444                         <string>Linux Libertine</string>
1445                         <string>Lobster</string>
1446                         <string>Lohit Bengali</string>
1447                         <string>Lohit Gujarati</string>
1448                         <string>Lohit Hindi</string>
1449                         <string>Lohit Hindi</string>
1450                         <string>Lohit Kannada</string>
1451                         <string>Lohit Malayalam</string>
1452                         <string>Lohit Oriya</string>
1453                         <string>Lohit Punjabi</string>
1454                         <string>Lohit Tamil</string>
1455                         <string>Lohit Telugu</string>
1456                         <string>Lucida Sans Std</string>
1457                         <string>Luxi Sans</string>
1458                         <string>Luxi Serif</string>
1459                         <string>M+ 2p</string>
1460                         <string>Marker Felt</string>
1461                         <string>Megalopolis</string>
1462                         <string>MetaMedium-Roman</string>
1463                         <string>Metabook-Roman</string>
1464                         <string>MgOpen Canonica</string>
1465                         <string>MgOpen Cosmetica</string>
1466                         <string>MgOpen Modata</string>
1467                         <string>MgOpen Moderna</string>
1468                         <string>Myriad Pro</string>
1469                         <string>Miriam</string>
1470                         <string>MS Mincho</string>
1471                         <string>MyriadRegular</string>
1472                         <string>Neuton</string>
1473                         <string>Nimbus Roman No9 L</string>
1474                         <string>Nimbus Mono L</string>
1475                         <string>Nimbus Sans</string>
1476                         <string>Nimbus Sans L</string>
1477                         <string>Nobile</string>
1478                         <string>Nobile002</string>
1479                         <string>Nobile-bold</string>
1480                         <string>Nobile-italic002</string>
1481                         <string>Nobile-bold-italic002</string>
1482                         <string>OFL Sorts Mill Goudy TT</string>
1483                         <string>Ocean Sans Std</string>
1484                         <string>Old Standard TT</string>
1485                         <string>Optima</string>  <!--- needs work but may be able to be promoted eventually -->
1486                         <string>OTS derived font</string>
1487                         <string>OTS derivied font</string>                      <!-- bug in chrome code? -->
1488                         <string>Palladio</string>
1489                         <string>Papyrus</string>
1490                         <string>PrimaSans BT</string>
1491                         <string>proxima-nova-1</string>
1492                         <string>proxima-nova-2</string>
1493                         <string>proxima nova</string>
1494                         <string>proxima nova bold</string>
1495                         <string>proxima nova regular</string>
1496                         <string>Reenie Beanie</string>
1497                         <string>SimHei</string>
1498                         <string>Skia</string>
1499                         <string>Swansea</string>
1500                         <string>Swiss721</string>
1501                         <string>Sylfaen</string>
1502                         <string>Tangerine</string>
1503                         <string>Times LT Std</string>
1504                         <string>Times New Roman MT Std</string>
1505                         <string>Times Roman</string>
1506                         <string>Times Ten LT Std</string>
1507                         <string>Univers LT Std</string>
1508                         <string>URWClassico</string>
1509                         <string>Utopia</string>
1510                         <string>Verdimka</string>
1511                         <string>Vollkorn</string>
1512                         <string>Yanone Kaffeesatz</string>
1513                         <string>Zapfino</string>
1514                         <string>cmbx10</string>
1515                         <string>cmex10</string>
1516                         <string>cmmi10</string>
1517                         <string>cmr10</string>
1518                         <string>cmsy10</string>
1519                         <string>cmtt10</string>
1520                         <string>eufm10</string>
1521                         <string>msam10</string>
1522                         <string>msbm10</string>
1523                         <string>wasy10</string>
1524                         <string>Eurostile LT Std</string>
1525                 </test>
1526                 <edit mode="assign" name="font_type" target="font">
1527                         <string>NON TT Instructed Font</string>
1528                 </edit>
1529         </match>
1530
1531         <match target="font" >
1532                 <test name="rendering_style" qual="any" >
1533                         <string>Infinality</string>
1534                         <string>Windows 7</string>
1535                         <string>Windows XP</string>
1536                         <string>Linux</string>
1537                         <string>Fedora Linux</string>
1538                 </test>
1539                 <test name="font_type" target="font">
1540                         <string>NON TT Instructed Font</string>
1541                 </test>
1542                 <edit mode="assign" name="autohint"  >
1543                         <bool>true</bool>
1544                 </edit>
1545                 <edit mode="assign" name="hintstyle" >
1546                         <const>hintslight</const>
1547                 </edit>
1548                 <edit mode="assign" name="hinting" >
1549                         <bool>true</bool>
1550                 </edit>
1551                 <edit mode="assign" name="antialias" >
1552                         <bool>true</bool>
1553                 </edit>
1554         </match>
1555
1556         <!-- For Windows 98 do "smooth edges" for these non-BCI fonts -->
1557         <match target="font" >
1558                 <test name="rendering_style" qual="any" >
1559                         <string>Windows 98</string>
1560                 </test>
1561                 <test name="font_type" target="font">
1562                         <string>NON TT Instructed Font</string>
1563                 </test>
1564                 <edit mode="assign" name="rgba" >
1565                         <const>none</const>
1566                 </edit>
1567                 <edit mode="assign" name="hinting" >
1568                         <bool>true</bool>
1569                 </edit>
1570                 <edit mode="assign" name="autohint" >
1571                         <bool>true</bool>
1572                 </edit>
1573                 <edit mode="assign" name="antialias" >
1574                         <bool>true</bool>
1575                 </edit>
1576         </match>
1577
1578         <!-- For Windows 98 do "smooth edges" for Bold Fonts over 14 px -->
1579         <match target="font" >
1580                 <test name="rendering_style" qual="any" >
1581                         <string>Windows 98</string>
1582                 </test>
1583                 <test name="weight" compare="more">
1584                         <const>medium</const>
1585                 </test>
1586                 <test compare="more_eq" name="pixelsize" qual="any" >
1587                         <double>14</double>
1588                 </test>
1589                 <edit mode="assign" name="rgba" >
1590                         <const>none</const>
1591                 </edit>
1592                 <edit mode="assign" name="hinting" >
1593                         <bool>true</bool>
1594                 </edit>
1595                 <edit mode="assign" name="autohint" >
1596                         <bool>false</bool>
1597                 </edit>
1598                 <edit mode="assign" name="antialias" >
1599                         <bool>true</bool>
1600                 </edit>
1601         </match>
1602
1603         <!-- For Windows 98 do "smooth edges" for fonts above 17 px -->
1604         <match target="font" >
1605                 <test name="rendering_style" qual="any" >
1606                         <string>Windows 98</string>
1607                 </test>
1608                 <test compare="more_eq" name="pixelsize" qual="any" >
1609                         <double>18</double>
1610                 </test>
1611                 <edit mode="assign" name="rgba" >
1612                         <const>none</const>
1613                 </edit>
1614                 <edit mode="assign" name="hinting" >
1615                         <bool>true</bool>
1616                 </edit>
1617                 <edit mode="assign" name="autohint" >
1618                         <bool>false</bool>
1619                 </edit>
1620                 <edit mode="assign" name="antialias" >
1621                         <bool>true</bool>
1622                 </edit>
1623         </match>
1624
1625
1626
1627         <!-- OVERRIDE ABOVE SETTINGS -->
1628         <!-- Monochrome BCI for these non-bold fonts (circa Windows 98) -->
1629         <!-- This should only be used by fonts that contain TrueType instructions -->
1630         <match target="font" >
1631                 <test name="family" qual="any" >
1632                         <string>xxx-NOTHING-xxx</string>
1633                 </test>
1634                 <edit mode="assign" name="hinting" >
1635                         <bool>true</bool>
1636                 </edit>
1637                 <edit mode="assign" name="autohint" >
1638                         <bool>false</bool>
1639                 </edit>
1640                 <edit mode="assign" name="antialias" >
1641                         <bool>false</bool>
1642                 </edit>
1643                 <edit mode="assign" name="hintstyle" >
1644                         <const>hintfull</const>
1645                 </edit>
1646         </match>
1647
1648         <!-- OVERRIDE ABOVE SETTINGS -->
1649         <!-- Make these fonts use no antialiasing or hinting (circa DOS / X11) -->
1650         <match target="font" >
1651                 <test name="family" qual="any" >
1652                         <string>ProFontWindows</string>
1653                         <string>Terminus</string>
1654                         <string>Terminus (ttf)</string>
1655                 </test>
1656                 <edit mode="assign" name="hintstyle" >
1657                         <const>hintnone</const>
1658                 </edit>
1659                 <edit mode="assign" name="antialias" >
1660                         <bool>false</bool>
1661                 </edit>
1662                 <edit mode="assign" name="hinting" >
1663                         <bool>false</bool>
1664                 </edit>
1665                 <!--<edit name="prefer_bitmap">
1666                         <bool>true</bool>
1667                   </edit>-->
1668         </match>
1669
1670         <!-- OVERRIDE ABOVE SETTINGS -->
1671         <!-- Full autohint -->
1672         <!-- Makes vertical/horizontal stems align to pixels, but is not true to the glyphs -->
1673         <!-- Some glyphs may look forced into place, however they are very sharp -->
1674         <match target="font" >
1675                 <test name="family" qual="any" >
1676                         <string>xxx-NOTHING-xxx</string>
1677                 </test>
1678                 <edit mode="assign" name="hinting" >
1679                         <bool>true</bool>
1680                 </edit>
1681                 <edit mode="assign" name="autohint" >
1682                         <bool>true</bool>
1683                 </edit>
1684                 <edit mode="assign" name="antialias" >
1685                         <bool>true</bool>
1686                 </edit>
1687                 <edit mode="assign" name="hintstyle" >
1688                         <const>hintfull</const>
1689                 </edit>
1690         </match>
1691
1692         <!-- OVERRIDE ABOVE SETTINGS -->
1693         <!-- Light autohint on italics -->
1694         <!-- Use for anything that is full auto or TT hinted above -->
1695         <match target="font" >
1696                 <test name="family" qual="any" >
1697                         <string>xxx-NOTHING-xxx</string>
1698                 </test>
1699                 <test target="pattern" compare="not_eq" name="slant" >
1700                         <const>roman</const>
1701                 </test>
1702                 <edit mode="assign" name="hinting" >
1703                         <bool>true</bool>
1704                 </edit>
1705                 <edit mode="assign" name="autohint" >
1706                         <bool>true</bool>
1707                 </edit>
1708                 <edit mode="assign" name="antialias" >
1709                         <bool>true</bool>
1710                 </edit>
1711                 <edit mode="assign" name="hintstyle" >
1712                         <const>hintslight</const>
1713                 </edit>
1714         </match>
1715
1716
1717         <!-- *************  FORCED ARTIFICIAL ITALIC / BOLD ******************  -->
1718
1719         <!-- "Unforced" artificial/italic already included in /etc/fonts/conf.d/ rules -->
1720
1721         <!-- Force artificial italic instead of the font's default italic -->
1722         <!-- In rare cases this is more visually appealing -->
1723
1724         <!-- Set the flag -->
1725         <match target="pattern">
1726                 <test target="font" compare="eq" name="family" qual="any" >
1727                         <string>-------Courier</string>  <!-- Somehow this breaks QT -->
1728                 </test>
1729
1730                 <!-- match requests for non-roman face -->
1731                 <test name="slant" compare="not_eq" >
1732                         <const>roman</const>
1733                 </test>
1734
1735                 <!-- remember that this should be slanted -->
1736                 <edit name="fake_slant">
1737                         <bool>true</bool>
1738                 </edit>
1739
1740                 <!--- change to match a roman face instead -->
1741                 <edit name="slant">
1742                         <const>roman</const>
1743                 </edit>
1744         </match>
1745
1746         <!-- Force flagged fonts to have artificial oblique -->
1747         <match target="font" >
1748                 <!-- check to see if the font is roman -->
1749                 <test name="slant" >
1750                         <const>roman</const>
1751                 </test>
1752                 <!-- look for fonts which were marked for fake obliquing -->
1753                 <test name="fake_slant">
1754                         <bool>true</bool>
1755                 </test>
1756                 <!-- multiply the matrix to slant the font -->
1757                 <edit mode="assign" name="matrix" >
1758                         <times>
1759                                 <name>matrix</name>
1760                                 <matrix>
1761                                         <double>1.0</double>
1762                                         <double>0.2</double>
1763                                         <double>0</double>
1764                                         <double>1</double>
1765                                 </matrix>
1766                         </times>
1767                 </edit>
1768                 <!-- pretend the font is oblique now -->
1769                 <edit mode="assign" name="slant" >
1770                         <const>oblique</const>
1771                 </edit>
1772         </match>
1773
1774
1775         <!-- Force fake bold instead of the font's default bold -->
1776         <!-- In rare cases this is more visually appealing -->
1777
1778         <!-- Set the flag -->
1779         <match target="pattern">
1780                 <test target="font" compare="eq" name="family" qual="any" >
1781                         <string>xxx-NOTHING-xxx</string>
1782                 </test>
1783
1784                 <!-- match requests for bold face -->
1785                 <test name="weight" compare="more">
1786                         <const>medium</const>
1787                 </test>
1788
1789                 <!-- remember that this should be bolded -->
1790                 <edit name="fake_bold">
1791                         <bool>true</bool>
1792                 </edit>
1793
1794                 <!--- change to match a medium weight instead -->
1795                 <edit name="weight">
1796                         <const>medium</const>
1797                 </edit>
1798         </match>
1799
1800         <!-- Force flagged fonts to have artificial bold -->
1801         <match target="font" >
1802                 <!-- look for fonts which were marked for fake bolding -->
1803                 <test name="fake_bold">
1804                         <bool>true</bool>
1805                 </test>
1806                 <!-- Set the embolden flag -->
1807                 <edit name="embolden" mode="assign">
1808                                 <bool>true</bool>
1809                 </edit>
1810                 <!-- pretend the font is bold now -->
1811                 <edit mode="assign" name="weight" >
1812                         <const>bold</const>
1813                 </edit>
1814         </match>
1815
1816
1817
1818         <!-- Prevent BCI fonts in Win98 mode from getting artificial italic -->
1819         <match target="font">
1820                 <test name="rendering_style" qual="any" >
1821                         <string>Windows 98</string>
1822                 </test>
1823                 <test name="font_type" target="font">
1824                         <string>TT Instructed Font</string>
1825                 </test>
1826                 <!-- check to see if the font is roman -->
1827                 <test name="slant" >
1828                         <const>roman</const>
1829                 </test>
1830                 <!-- match requests for non-roman face -->
1831                 <test target="pattern" name="slant" compare="not_eq">
1832                         <const>roman</const>
1833                 </test>
1834                 <!-- pretend the font is oblique now -->
1835                 <edit mode="assign" name="slant" >
1836                         <const>oblique</const>
1837                 </edit>
1838         </match>
1839
1840         <!-- Prevent BCI fonts in Win98 mode from getting artificial emboldened -->
1841         <match target="font">
1842                 <test name="rendering_style" qual="any" >
1843                         <string>Windows 98</string>
1844                 </test>
1845                 <test name="font_type" target="font">
1846                         <string>TT Instructed Font</string>
1847                 </test>
1848                 <!-- check to see if the font is just regular -->
1849                 <test name="weight" compare="less_eq">
1850                         <const>medium</const>
1851                 </test>
1852                 <!-- check to see if the pattern requests bold -->
1853                 <test target="pattern" name="weight" compare="more">
1854                         <const>medium</const>
1855                 </test>
1856                 <!-- pretend it's bold now -->
1857                 <edit name="weight" mode="assign">
1858                         <const>bold</const>
1859                 </edit>
1860         </match>
1861
1862
1863         <!-- ********************  FINAL SETTINGS **********************  -->
1864
1865         <!-- Make verdana 9 and 10 appear like they do on Windows -->
1866         <!-- Does not work with Google Chrome, but does in Firefox -->
1867         <match target="font">
1868                 <test name="rendering_style" qual="any" >
1869                         <string>Infinality</string>
1870                         <string>Windows 7</string>
1871                         <string>Windows XP</string>
1872                 </test>
1873                 <test name="family" qual="any" >
1874                         <string>Verdana</string>
1875                 </test>
1876                 <test compare="less" name="weight" >
1877                         <const>bold</const>
1878                 </test>
1879                 <test compare="more_eq" name="pixelsize" qual="any" >
1880                         <double>8.5</double>
1881                 </test>
1882                 <test compare="less" name="pixelsize" qual="any" >
1883                                 <double>10.5</double>
1884                         </test>
1885                 <edit name="matrix" mode="assign" >
1886                         <times>
1887                                 <name>matrix</name>
1888                                 <matrix>
1889                                         <double>1.1</double>
1890                                         <double>0.0</double>
1891                                         <double>0.0</double>
1892                                         <double>1.0</double>
1893                                 </matrix>
1894                         </times>
1895                 </edit>
1896         </match>
1897
1898
1899         <!-- Make verdana 12 appear like it does on Windows -->
1900         <!-- Does not work with Google Chrome, but does in Firefox -->
1901         <match target="font">
1902                 <test name="rendering_style" qual="any" >
1903                         <string>Infinality</string>
1904                         <string>Windows 7</string>
1905                         <string>Windows XP</string>
1906                 </test>
1907                 <test name="family" qual="any" >
1908                         <string>Verdana</string>
1909                 </test>
1910                 <test compare="less" name="weight" >
1911                         <const>bold</const>
1912                 </test>
1913                 <test compare="more_eq" name="pixelsize" qual="any" >
1914                         <double>11.5</double>
1915                 </test>
1916                 <test compare="less" name="pixelsize" qual="any" >
1917                                 <double>12.5</double>
1918                         </test>
1919                 <edit name="matrix" mode="assign" >
1920                         <times>
1921                                 <name>matrix</name>
1922                                 <matrix>
1923                                         <double>1.05</double>
1924                                         <double>0.0</double>
1925                                         <double>0.0</double>
1926                                         <double>1.0</double>
1927                                 </matrix>
1928                         </times>
1929                 </edit>
1930         </match>
1931
1932         <!-- All fonts should use slight hinting below 8.5 px -->
1933         <match target="font" >
1934                 <test name="rendering_style" qual="any" >
1935                         <string>Infinality</string>
1936                         <string>Windows 7</string>
1937                         <string>Windows XP</string>
1938                 </test>
1939                 <test compare="less" name="pixelsize" qual="any" >
1940                         <double>8.5</double>
1941                 </test>
1942                 <edit mode="assign" name="hintstyle" >
1943                         <const>hintslight</const>
1944                 </edit>
1945                 <edit mode="assign" name="autohint" >
1946                         <bool>true</bool>
1947                 </edit>
1948         </match>
1949
1950         <!-- All fonts should use full hinting above 22 px
1951         <match target="font" >
1952                 <test compare="more_eq" name="pixelsize" qual="any" >
1953                         <double>22.5</double>
1954                 </test>
1955                 <edit mode="assign" name="hintstyle" >
1956                         <const>hintfull</const>
1957                 </edit>
1958                 <edit mode="assign" name="autohint" >
1959                         <bool>true</bool>
1960                 </edit>
1961         </match> -->
1962
1963
1964         <!-- These full hinted fonts should use slight hinting below 12 px -->
1965         <match target="font" >
1966                 <test name="family" qual="any" >
1967                         <string>Arial Black</string>
1968                 </test>
1969                 <test compare="less" name="pixelsize" qual="any" >
1970                         <double>11.5</double>
1971                 </test>
1972                 <edit mode="assign" name="hintstyle" >
1973                         <const>hintslight</const>
1974                 </edit>
1975                 <edit mode="assign" name="autohint" >
1976                         <bool>true</bool>
1977                 </edit>
1978         </match>
1979
1980         <!-- These full hinted fonts should use slight hinting below 14 px -->
1981         <match target="font" >
1982                 <test name="family" qual="any" >
1983                         <string>Aquabase</string>
1984                         <string>Browallia New</string>
1985                         <string>BrowalliaUPC</string>
1986                 </test>
1987                 <test compare="less" name="pixelsize" qual="any" >
1988                         <double>13.5</double>
1989                 </test>
1990                 <edit mode="assign" name="hintstyle" >
1991                         <const>hintslight</const>
1992                 </edit>
1993                 <edit mode="assign" name="autohint" >
1994                         <bool>true</bool>
1995                 </edit>
1996         </match>
1997         
1998         <!-- These full hinted fonts should use slight hinting at 17 px -->
1999         <match target="font" >
2000                 <test name="family" qual="any" >
2001                         <string>Gill Sans</string>
2002                 </test>
2003                 <test compare="less" name="pixelsize" qual="any" >
2004                         <double>17.5</double>
2005                 </test>
2006                 <test compare="more_eq" name="pixelsize" qual="any" >
2007                         <double>16.5</double>
2008                 </test>         
2009                 <edit mode="assign" name="autohint" >
2010                         <bool>true</bool>
2011                 </edit>         
2012                 <edit mode="assign" name="hintstyle" >
2013                         <const>hintslight</const>
2014                 </edit>
2015         </match>
2016
2017         <!-- Gentium has issues with the infinality autohint patch -->
2018         <match target="font" >
2019                 <test name="font_type" qual="any" >
2020                         <string>Gentium</string>
2021                 </test>
2022                 <test compare="less" name="pixelsize" qual="any" >
2023                         <double>10.5</double>
2024                 </test>
2025                 <edit mode="assign" name="antialias" >
2026                         <bool>true</bool>
2027                 </edit>
2028                 <edit mode="assign" name="hintstyle" >
2029                         <const>hintnone</const>
2030                 </edit>
2031         </match>
2032
2033         <!-- Italic Courier looks bad with BCI hinting -->
2034         <match target="font" >
2035                 <test name="family" qual="any" >
2036                         <string>Courier</string>
2037                 </test>
2038                 <!-- match requests for non-roman face -->
2039                 <test name="slant" compare="not_eq" >
2040                         <const>roman</const>
2041                 </test>
2042                 <edit mode="assign" name="hintstyle" >
2043                         <const>hintslight</const>
2044                 </edit>
2045                 <edit mode="assign" name="autohint" >
2046                         <bool>true</bool>
2047                 </edit>
2048         </match>
2049
2050
2051         <!--  Rescan configuration every 10 seconds when FcFontSetList is called -->
2052         <rescan>
2053                 <int>10</int>
2054         </rescan>
2055
2056
2057         <!-- Global Override for Debugging -->
2058 <!-- 
2059         <match target="font" >
2060                 <edit mode="assign" name="rgba" >
2061                         <const>rgb</const>
2062                 </edit>
2063                 <edit mode="assign" name="hinting" >
2064                         <bool>true</bool>
2065                 </edit>
2066                 <edit mode="assign" name="autohint" >
2067                         <bool>false</bool>
2068                 </edit>
2069                 <edit mode="assign" name="antialias" >
2070                         <bool>true</bool>
2071                 </edit>
2072                 <edit mode="assign" name="hintstyle" >
2073                         <const>hintfull</const>
2074                 </edit>
2075                 <edit name="lcdfilter" mode="assign">
2076                         <const>lcddefault</const>
2077                 </edit>
2078         </match>
2079         -->
2080
2081 </fontconfig>