cairo 1.15.12-x64-mingw32 → 1.15.13-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. checksums.yaml +5 -5
  2. data/NEWS +12 -0
  3. data/Rakefile +3 -7
  4. data/ext/cairo/rb_cairo.h +2 -2
  5. data/ext/cairo/rb_cairo_font_options.c +28 -1
  6. data/lib/2.2/cairo.so +0 -0
  7. data/lib/2.3/cairo.so +0 -0
  8. data/lib/2.4/cairo.so +0 -0
  9. data/lib/2.5/cairo.so +0 -0
  10. data/test/test_font_options.rb +7 -0
  11. data/vendor/local/bin/fc-cache.exe +0 -0
  12. data/vendor/local/bin/fc-cat.exe +0 -0
  13. data/vendor/local/bin/fc-conflist.exe +0 -0
  14. data/vendor/local/bin/fc-list.exe +0 -0
  15. data/vendor/local/bin/fc-match.exe +0 -0
  16. data/vendor/local/bin/fc-pattern.exe +0 -0
  17. data/vendor/local/bin/fc-query.exe +0 -0
  18. data/vendor/local/bin/fc-scan.exe +0 -0
  19. data/vendor/local/bin/fc-validate.exe +0 -0
  20. data/vendor/local/bin/freetype-config +5 -5
  21. data/vendor/local/bin/libcairo-2.dll +0 -0
  22. data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
  23. data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
  24. data/vendor/local/bin/libfontconfig-1.dll +0 -0
  25. data/vendor/local/bin/libfreetype-6.dll +0 -0
  26. data/vendor/local/bin/libgcc_s_seh-1.dll +0 -0
  27. data/vendor/local/bin/libpixman-1-0.dll +0 -0
  28. data/vendor/local/bin/libpng-config +1 -1
  29. data/vendor/local/bin/libpng16-16.dll +0 -0
  30. data/vendor/local/bin/libpng16-config +1 -1
  31. data/vendor/local/bin/libstdc++-6.dll +0 -0
  32. data/vendor/local/bin/libwinpthread-1.dll +0 -0
  33. data/vendor/local/bin/libxml2-2.dll +0 -0
  34. data/vendor/local/bin/png-fix-itxt.exe +0 -0
  35. data/vendor/local/bin/pngfix.exe +0 -0
  36. data/vendor/local/bin/xml2-config +4 -4
  37. data/vendor/local/bin/xmlcatalog.exe +0 -0
  38. data/vendor/local/bin/xmllint.exe +0 -0
  39. data/vendor/local/bin/zlib1211.dll +0 -0
  40. data/vendor/local/etc/fonts/conf.d/10-hinting-slight.conf +6 -0
  41. data/vendor/local/etc/fonts/conf.d/10-scale-bitmap-fonts.conf +4 -0
  42. data/vendor/local/etc/fonts/conf.d/20-unhint-small-vera.conf +5 -0
  43. data/vendor/local/etc/fonts/conf.d/30-metric-aliases.conf +8 -26
  44. data/vendor/local/etc/fonts/conf.d/40-nonlatin.conf +5 -0
  45. data/vendor/local/etc/fonts/conf.d/45-generic.conf +136 -0
  46. data/vendor/local/etc/fonts/conf.d/45-latin.conf +5 -0
  47. data/vendor/local/etc/fonts/conf.d/49-sansserif.conf +5 -0
  48. data/vendor/local/etc/fonts/conf.d/50-user.conf +5 -0
  49. data/vendor/local/etc/fonts/conf.d/51-local.conf +5 -0
  50. data/vendor/local/etc/fonts/conf.d/60-generic.conf +67 -0
  51. data/vendor/local/etc/fonts/conf.d/60-latin.conf +5 -0
  52. data/vendor/local/etc/fonts/conf.d/65-fonts-persian.conf +4 -0
  53. data/vendor/local/etc/fonts/conf.d/65-nonlatin.conf +7 -3
  54. data/vendor/local/etc/fonts/conf.d/69-unifont.conf +4 -0
  55. data/vendor/local/etc/fonts/conf.d/80-delicious.conf +4 -0
  56. data/vendor/local/etc/fonts/conf.d/90-synthetic.conf +7 -3
  57. data/vendor/local/etc/fonts/fonts.conf +5 -0
  58. data/vendor/local/include/cairo/cairo-features.h +0 -1
  59. data/vendor/local/include/cairo/cairo-svg.h +1 -1
  60. data/vendor/local/include/cairo/cairo-version.h +1 -1
  61. data/vendor/local/include/cairo/cairo.h +8 -1
  62. data/vendor/local/include/fontconfig/fcfreetype.h +1 -1
  63. data/vendor/local/include/fontconfig/fcprivate.h +8 -1
  64. data/vendor/local/include/fontconfig/fontconfig.h +61 -6
  65. data/vendor/local/lib/fontconfig.def +10 -1
  66. data/vendor/local/lib/libcairo-gobject.a +0 -0
  67. data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
  68. data/vendor/local/lib/libcairo-gobject.la +4 -4
  69. data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
  70. data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
  71. data/vendor/local/lib/libcairo-script-interpreter.la +4 -4
  72. data/vendor/local/lib/libcairo.a +0 -0
  73. data/vendor/local/lib/libcairo.dll.a +0 -0
  74. data/vendor/local/lib/libcairo.la +4 -4
  75. data/vendor/local/lib/libfontconfig.dll.a +0 -0
  76. data/vendor/local/lib/libfontconfig.la +5 -5
  77. data/vendor/local/lib/libfreetype.a +0 -0
  78. data/vendor/local/lib/libfreetype.dll.a +0 -0
  79. data/vendor/local/lib/libfreetype.la +2 -2
  80. data/vendor/local/lib/libpixman-1.a +0 -0
  81. data/vendor/local/lib/libpixman-1.dll.a +0 -0
  82. data/vendor/local/lib/libpixman-1.la +2 -2
  83. data/vendor/local/lib/libpng.a +0 -0
  84. data/vendor/local/lib/libpng.dll.a +0 -0
  85. data/vendor/local/lib/libpng.la +2 -2
  86. data/vendor/local/lib/libpng16.a +0 -0
  87. data/vendor/local/lib/libpng16.dll.a +0 -0
  88. data/vendor/local/lib/libpng16.la +2 -2
  89. data/vendor/local/lib/libxml2.a +0 -0
  90. data/vendor/local/lib/libxml2.dll.a +0 -0
  91. data/vendor/local/lib/libxml2.la +2 -2
  92. data/vendor/local/lib/libz.a +0 -0
  93. data/vendor/local/lib/libz.dll.a +0 -0
  94. data/vendor/local/lib/pkgconfig/cairo-fc.pc +2 -2
  95. data/vendor/local/lib/pkgconfig/cairo-ft.pc +2 -2
  96. data/vendor/local/lib/pkgconfig/cairo-gobject.pc +2 -2
  97. data/vendor/local/lib/pkgconfig/cairo-pdf.pc +2 -2
  98. data/vendor/local/lib/pkgconfig/cairo-png.pc +2 -2
  99. data/vendor/local/lib/pkgconfig/cairo-ps.pc +2 -2
  100. data/vendor/local/lib/pkgconfig/cairo-script.pc +2 -2
  101. data/vendor/local/lib/pkgconfig/cairo-svg.pc +2 -2
  102. data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +2 -2
  103. data/vendor/local/lib/pkgconfig/cairo-win32.pc +2 -2
  104. data/vendor/local/lib/pkgconfig/cairo.pc +2 -2
  105. data/vendor/local/lib/pkgconfig/fontconfig.pc +6 -6
  106. data/vendor/local/lib/pkgconfig/freetype2.pc +4 -4
  107. data/vendor/local/lib/pkgconfig/libpng.pc +1 -1
  108. data/vendor/local/lib/pkgconfig/libpng16.pc +1 -1
  109. data/vendor/local/lib/pkgconfig/libxml-2.0.pc +2 -2
  110. data/vendor/local/lib/pkgconfig/pixman-1.pc +1 -1
  111. data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
  112. data/vendor/local/lib/xml2Conf.sh +3 -3
  113. data/vendor/local/share/fontconfig/conf.avail/10-autohint.conf +5 -0
  114. data/vendor/local/share/fontconfig/conf.avail/10-hinting-full.conf +6 -0
  115. data/vendor/local/share/fontconfig/conf.avail/10-hinting-medium.conf +6 -0
  116. data/vendor/local/share/fontconfig/conf.avail/10-hinting-none.conf +6 -0
  117. data/vendor/local/share/fontconfig/conf.avail/10-hinting-slight.conf +6 -0
  118. data/vendor/local/share/fontconfig/conf.avail/10-no-sub-pixel.conf +5 -0
  119. data/vendor/local/share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf +4 -0
  120. data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-bgr.conf +5 -0
  121. data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf +5 -0
  122. data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-vbgr.conf +5 -0
  123. data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-vrgb.conf +5 -0
  124. data/vendor/local/share/fontconfig/conf.avail/10-unhinted.conf +5 -0
  125. data/vendor/local/share/fontconfig/conf.avail/11-lcdfilter-default.conf +5 -0
  126. data/vendor/local/share/fontconfig/conf.avail/11-lcdfilter-legacy.conf +5 -0
  127. data/vendor/local/share/fontconfig/conf.avail/11-lcdfilter-light.conf +5 -0
  128. data/vendor/local/share/fontconfig/conf.avail/20-unhint-small-vera.conf +5 -0
  129. data/vendor/local/share/fontconfig/conf.avail/25-unhint-nonlatin.conf +4 -0
  130. data/vendor/local/share/fontconfig/conf.avail/30-metric-aliases.conf +8 -26
  131. data/vendor/local/share/fontconfig/conf.avail/40-nonlatin.conf +5 -0
  132. data/vendor/local/share/fontconfig/conf.avail/45-generic.conf +136 -0
  133. data/vendor/local/share/fontconfig/conf.avail/45-latin.conf +5 -0
  134. data/vendor/local/share/fontconfig/conf.avail/49-sansserif.conf +5 -0
  135. data/vendor/local/share/fontconfig/conf.avail/50-user.conf +5 -0
  136. data/vendor/local/share/fontconfig/conf.avail/51-local.conf +5 -0
  137. data/vendor/local/share/fontconfig/conf.avail/60-generic.conf +67 -0
  138. data/vendor/local/share/fontconfig/conf.avail/60-latin.conf +5 -0
  139. data/vendor/local/share/fontconfig/conf.avail/65-fonts-persian.conf +4 -0
  140. data/vendor/local/share/fontconfig/conf.avail/65-khmer.conf +4 -0
  141. data/vendor/local/share/fontconfig/conf.avail/65-nonlatin.conf +7 -3
  142. data/vendor/local/share/fontconfig/conf.avail/69-unifont.conf +4 -0
  143. data/vendor/local/share/fontconfig/conf.avail/70-no-bitmaps.conf +5 -0
  144. data/vendor/local/share/fontconfig/conf.avail/70-yes-bitmaps.conf +5 -0
  145. data/vendor/local/share/fontconfig/conf.avail/80-delicious.conf +4 -0
  146. data/vendor/local/share/fontconfig/conf.avail/90-synthetic.conf +7 -3
  147. data/vendor/local/share/gettext/its/fontconfig.its +4 -0
  148. data/vendor/local/share/gettext/its/fontconfig.loc +6 -0
  149. data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +2 -1
  150. data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +1 -1
  151. data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +9 -32
  152. data/vendor/local/share/gtk-doc/html/cairo/cairo-Tags-and-Links.html +3 -3
  153. data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +2 -2
  154. data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +1 -1
  155. data/vendor/local/share/gtk-doc/html/cairo/index-1.10.html +56 -56
  156. data/vendor/local/share/gtk-doc/html/cairo/index-1.12.html +63 -63
  157. data/vendor/local/share/gtk-doc/html/cairo/index-1.14.html +5 -5
  158. data/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +54 -52
  159. data/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +29 -29
  160. data/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +22 -22
  161. data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +33 -33
  162. data/vendor/local/share/gtk-doc/html/cairo/index-all.html +508 -508
  163. data/vendor/local/share/gtk-doc/html/cairo/index.html +1 -1
  164. data/vendor/local/share/license/fontconfig/README +260 -2
  165. metadata +31 -26
  166. data/vendor/local/etc/fonts/conf.d/30-urw-aliases.conf +0 -33
  167. data/vendor/local/share/fontconfig/conf.avail/30-urw-aliases.conf +0 -33
@@ -1,6 +1,11 @@
1
1
  <?xml version="1.0"?>
2
2
  <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
3
  <fontconfig>
4
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
5
+ <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
6
+ </its:rules>
7
+
8
+ <description>Use lcdlight as default for LCD filter</description>
4
9
  <!-- Use lcdlight as default for LCD filter -->
5
10
  <match target="pattern">
6
11
  <!--
@@ -1,6 +1,11 @@
1
1
  <?xml version="1.0"?>
2
2
  <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
3
  <fontconfig>
4
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
5
+ <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
6
+ </its:rules>
7
+
8
+ <description>Disable hinting for Bitstream Vera fonts when the size is less than 8ppem</description>
4
9
  <!--
5
10
  The Bitstream Vera fonts have GASP entries suggesting that hinting be
6
11
  disabled below 8 ppem, but FreeType ignores those, preferring to use
@@ -1,7 +1,11 @@
1
1
  <?xml version="1.0"?>
2
2
  <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
3
  <fontconfig>
4
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
5
+ <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
6
+ </its:rules>
4
7
 
8
+ <description>Disable hinting for CJK fonts</description>
5
9
  <!-- We can't hint CJK fonts well, so turn off hinting for CJK fonts. -->
6
10
 
7
11
  <match target="font">
@@ -1,6 +1,11 @@
1
1
  <?xml version="1.0"?>
2
2
  <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
3
  <fontconfig>
4
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
5
+ <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
6
+ </its:rules>
7
+
8
+ <description>Set substitutions for similar/metric-compatible families</description>
4
9
 
5
10
  <!--
6
11
 
@@ -44,6 +49,9 @@ but in an order preferring similar designs first. We do this in three steps:
44
49
  3) Alias each generic to its specifics.
45
50
  e.g. Arial to Liberation Sans, Arimo, Albany, and Albany AMT
46
51
 
52
+ NOTE: The (URW)++ fonts mappings of generics to specifics were removed, because
53
+ upstream now includes them in their release of (URW)++ Core Font Set here:
54
+ https://github.com/ArtifexSoftware/urw-base35-fonts/tree/master/fontconfig
47
55
  -->
48
56
 
49
57
  <!-- Map specifics to generics -->
@@ -308,7 +316,6 @@ but in an order preferring similar designs first. We do this in three steps:
308
316
  </default>
309
317
  </alias>
310
318
 
311
-
312
319
  <!-- Microsoft -->
313
320
  <alias binding="same">
314
321
  <family>Arimo</family>
@@ -460,7 +467,6 @@ but in an order preferring similar designs first. We do this in three steps:
460
467
  </default>
461
468
  </alias>
462
469
 
463
-
464
470
  <!-- Microsoft -->
465
471
  <alias>
466
472
  <family>Arial</family>
@@ -490,8 +496,6 @@ but in an order preferring similar designs first. We do this in three steps:
490
496
  </default>
491
497
  </alias>
492
498
 
493
-
494
-
495
499
  <!-- Map generics to specifics -->
496
500
 
497
501
  <!-- PostScript -->
@@ -499,8 +503,6 @@ but in an order preferring similar designs first. We do this in three steps:
499
503
  <family>Helvetica</family>
500
504
  <accept>
501
505
  <family>TeX Gyre Heros</family>
502
- <family>Nimbus Sans</family>
503
- <family>Nimbus Sans L</family>
504
506
  </accept>
505
507
  </alias>
506
508
 
@@ -508,7 +510,6 @@ but in an order preferring similar designs first. We do this in three steps:
508
510
  <family>Helvetica Narrow</family>
509
511
  <accept>
510
512
  <family>TeX Gyre Heros Cn</family>
511
- <family>Nimbus Sans Narrow</family>
512
513
  </accept>
513
514
  </alias>
514
515
 
@@ -516,8 +517,6 @@ but in an order preferring similar designs first. We do this in three steps:
516
517
  <family>Times</family>
517
518
  <accept>
518
519
  <family>TeX Gyre Termes</family>
519
- <family>Nimbus Roman</family>
520
- <family>Nimbus Roman No9 L</family>
521
520
  </accept>
522
521
  </alias>
523
522
 
@@ -525,9 +524,6 @@ but in an order preferring similar designs first. We do this in three steps:
525
524
  <family>Courier</family>
526
525
  <accept>
527
526
  <family>TeX Gyre Cursor</family>
528
- <family>Nimbus Mono PS</family>
529
- <family>Nimbus Mono</family>
530
- <family>Nimbus Mono L</family>
531
527
  </accept>
532
528
  </alias>
533
529
 
@@ -535,8 +531,6 @@ but in an order preferring similar designs first. We do this in three steps:
535
531
  <family>ITC Avant Garde Gothic</family>
536
532
  <accept>
537
533
  <family>TeX Gyre Adventor</family>
538
- <family>URW Gothic</family>
539
- <family>URW Gothic L</family>
540
534
  </accept>
541
535
  </alias>
542
536
 
@@ -545,9 +539,6 @@ but in an order preferring similar designs first. We do this in three steps:
545
539
  <accept>
546
540
  <family>Bookman Old Style</family>
547
541
  <family>TeX Gyre Bonum</family>
548
- <family>URW Bookman</family>
549
- <family>Bookman URW</family>
550
- <family>URW Bookman L</family>
551
542
  </accept>
552
543
  </alias>
553
544
 
@@ -555,9 +546,6 @@ but in an order preferring similar designs first. We do this in three steps:
555
546
  <family>ITC Zapf Chancery</family>
556
547
  <accept>
557
548
  <family>TeX Gyre Chorus</family>
558
- <family>Z003</family>
559
- <family>Chancery URW</family>
560
- <family>URW Chancery L</family>
561
549
  </accept>
562
550
  </alias>
563
551
 
@@ -566,9 +554,6 @@ but in an order preferring similar designs first. We do this in three steps:
566
554
  <accept>
567
555
  <family>Palatino Linotype</family>
568
556
  <family>TeX Gyre Pagella</family>
569
- <family>P052</family>
570
- <family>Palladio URW</family>
571
- <family>URW Palladio L</family>
572
557
  </accept>
573
558
  </alias>
574
559
 
@@ -577,9 +562,6 @@ but in an order preferring similar designs first. We do this in three steps:
577
562
  <accept>
578
563
  <family>Century Schoolbook</family>
579
564
  <family>TeX Gyre Schola</family>
580
- <family>C059</family>
581
- <family>Century SchoolBook URW</family>
582
- <family>Century Schoolbook L</family>
583
565
  </accept>
584
566
  </alias>
585
567
 
@@ -1,6 +1,11 @@
1
1
  <?xml version="1.0"?>
2
2
  <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
3
  <fontconfig>
4
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
5
+ <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
6
+ </its:rules>
7
+
8
+ <description>Set substitutions for non-Latin fonts</description>
4
9
  <!--
5
10
  Mark common families with their generics so we'll get
6
11
  something reasonable
@@ -0,0 +1,136 @@
1
+ <?xml version="1.0"?>
2
+ <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
+ <fontconfig>
4
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
5
+ <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
6
+ </its:rules>
7
+
8
+ <description>Set substitutions for emoji/math fonts</description>
9
+
10
+ <!-- Keep in sync with 60-generic.conf -->
11
+
12
+ <!-- Emoji -->
13
+
14
+ <!-- System emoji -->
15
+ <alias binding="same">
16
+ <family>Noto Color Emoji</family> <!-- Google -->
17
+ <default><family>emoji</family></default>
18
+ </alias>
19
+ <alias binding="same">
20
+ <family>Apple Color Emoji</family> <!-- Apple -->
21
+ <default><family>emoji</family></default>
22
+ </alias>
23
+ <alias binding="same">
24
+ <family>Segoe UI Emoji</family> <!-- Microsoft -->
25
+ <default><family>emoji</family></default>
26
+ </alias>
27
+ <alias binding="same">
28
+ <family>Twitter Color Emoji</family> <!-- Twitter -->
29
+ <default><family>emoji</family></default>
30
+ </alias>
31
+ <alias binding="same">
32
+ <family>EmojiOne Mozilla</family> <!-- Mozilla -->
33
+ <default><family>emoji</family></default>
34
+ </alias>
35
+ <!-- Third-party emoji -->
36
+ <alias binding="same">
37
+ <family>Emoji Two</family>
38
+ <default><family>emoji</family></default>
39
+ </alias>
40
+ <alias binding="same">
41
+ <family>Emoji One</family>
42
+ <default><family>emoji</family></default>
43
+ </alias>
44
+ <!-- B&W -->
45
+ <alias binding="same">
46
+ <family>Noto Emoji</family> <!-- Google -->
47
+ <default><family>emoji</family></default>
48
+ </alias>
49
+ <alias binding="same">
50
+ <family>Android Emoji</family> <!-- Google -->
51
+ <default><family>emoji</family></default>
52
+ </alias>
53
+
54
+ <!-- Add language for emoji, to match other emoji fonts. -->
55
+ <match>
56
+ <test name="family">
57
+ <string>emoji</string>
58
+ </test>
59
+ <edit name="lang" mode="prepend">
60
+ <string>und-zsye</string>
61
+ </edit>
62
+ </match>
63
+
64
+ <match>
65
+ <test name="lang">
66
+ <string>und-zsye</string>
67
+ </test>
68
+ <test qual="all" name="family" compare="not_eq">
69
+ <string>emoji</string>
70
+ </test>
71
+
72
+ <!-- Add generic family. -->
73
+ <edit name="family" mode="append" binding="strong">
74
+ <string>emoji</string>
75
+ </edit>
76
+ </match>
77
+
78
+
79
+ <!-- Math -->
80
+
81
+ <!-- https://en.wikipedia.org/wiki/Category:Mathematical_OpenType_typefaces -->
82
+ <alias binding="same">
83
+ <family>XITS Math</family> <!-- Khaled Hosny -->
84
+ <default><family>math</family></default>
85
+ </alias>
86
+ <alias binding="same">
87
+ <family>STIX Two Math</family> <!-- AMS -->
88
+ <default><family>math</family></default>
89
+ </alias>
90
+ <alias binding="same">
91
+ <family>Cambria Math</family> <!-- Microsoft -->
92
+ <default><family>math</family></default>
93
+ </alias>
94
+ <alias binding="same">
95
+ <family>Latin Modern Math</family> <!-- TeX -->
96
+ <default><family>math</family></default>
97
+ </alias>
98
+ <alias binding="same">
99
+ <family>Minion Math</family> <!-- Adobe -->
100
+ <default><family>math</family></default>
101
+ </alias>
102
+ <alias binding="same">
103
+ <family>Lucida Math</family> <!-- Adobe -->
104
+ <default><family>math</family></default>
105
+ </alias>
106
+ <alias binding="same">
107
+ <family>Asana Math</family>
108
+ <default><family>math</family></default>
109
+ </alias>
110
+
111
+ <!-- Add language for math, to match other math fonts. -->
112
+ <match>
113
+ <test name="family">
114
+ <string>math</string>
115
+ </test>
116
+ <edit name="lang" mode="prepend">
117
+ <string>und-zmth</string>
118
+ </edit>
119
+ </match>
120
+
121
+ <match>
122
+ <test name="lang">
123
+ <string>und-zmth</string>
124
+ </test>
125
+ <test qual="all" name="family" compare="not_eq">
126
+ <string>math</string>
127
+ </test>
128
+
129
+ <!-- Add generic family -->
130
+ <edit name="family" mode="append" binding="strong">
131
+ <string>math</string>
132
+ </edit>
133
+ </match>
134
+
135
+
136
+ </fontconfig>
@@ -1,6 +1,11 @@
1
1
  <?xml version="1.0"?>
2
2
  <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
3
  <fontconfig>
4
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
5
+ <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
6
+ </its:rules>
7
+
8
+ <description>Set substitutions for Latin fonts</description>
4
9
  <!--
5
10
  Mark common families with their generics so we'll get
6
11
  something reasonable
@@ -1,6 +1,11 @@
1
1
  <?xml version="1.0"?>
2
2
  <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
3
  <fontconfig>
4
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
5
+ <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
6
+ </its:rules>
7
+
8
+ <description>Add sans-serif to the family when no generic name</description>
4
9
  <!--
5
10
  If the font still has no generic name, add sans-serif
6
11
  -->
@@ -1,6 +1,11 @@
1
1
  <?xml version="1.0"?>
2
2
  <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
3
  <fontconfig>
4
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
5
+ <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
6
+ </its:rules>
7
+
8
+ <description>Load per-user customization files</description>
4
9
  <!--
5
10
  Load per-user customization files where stored on XDG Base Directory
6
11
  specification compliant places. it should be usually:
@@ -1,6 +1,11 @@
1
1
  <?xml version="1.0"?>
2
2
  <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
3
  <fontconfig>
4
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
5
+ <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
6
+ </its:rules>
7
+
8
+ <description>Load local customization file</description>
4
9
  <!-- Load local system customization file -->
5
10
  <include ignore_missing="yes">local.conf</include>
6
11
  </fontconfig>
@@ -0,0 +1,67 @@
1
+ <?xml version="1.0"?>
2
+ <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
+ <fontconfig>
4
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
5
+ <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
6
+ </its:rules>
7
+
8
+ <description>Set preferable fonts for emoji/math fonts</description>
9
+ <!-- Keep in sync with 45-generic.conf -->
10
+
11
+ <!-- Emoji -->
12
+
13
+ <!-- Prefer to match color emoji font. -->
14
+ <match>
15
+ <test name="lang">
16
+ <string>und-zsye</string>
17
+ </test>
18
+ <test qual="all" name="color" compare="not_eq">
19
+ <bool>true</bool>
20
+ </test>
21
+ <test qual="all" name="color" compare="not_eq">
22
+ <bool>false</bool>
23
+ </test>
24
+ <edit name="color" mode="append">
25
+ <bool>true</bool>
26
+ </edit>
27
+ </match>
28
+
29
+ <!-- TODO
30
+ ! Match on "color" and alias B&W ones first if no color is requested.
31
+ ! That's "hard" because <alias> doesn't work in match and needs to be
32
+ ! expanded to its non-sugar form.
33
+ !-->
34
+ <alias binding="same">
35
+ <family>emoji</family>
36
+ <prefer>
37
+ <!-- System fonts -->
38
+ <family>Noto Color Emoji</family> <!-- Google -->
39
+ <family>Apple Color Emoji</family> <!-- Apple -->
40
+ <family>Segoe UI Emoji</family> <!-- Microsoft -->
41
+ <family>Twitter Color Emoji</family> <!-- Twitter -->
42
+ <family>EmojiOne Mozilla</family> <!-- Mozilla -->
43
+ <!-- Third-Party fonts -->
44
+ <family>Emoji Two</family>
45
+ <family>Emoji One</family>
46
+ <!-- Non-color -->
47
+ <family>Noto Emoji</family> <!-- Google -->
48
+ <family>Android Emoji</family> <!-- Google -->
49
+ </prefer>
50
+ </alias>
51
+
52
+ <!-- Math -->
53
+ <alias binding="same">
54
+ <!-- https://en.wikipedia.org/wiki/Category:Mathematical_OpenType_typefaces -->
55
+ <family>math</family>
56
+ <prefer>
57
+ <family>XITS Math</family> <!-- Khaled Hosny -->
58
+ <family>STIX Two Math</family> <!-- AMS -->
59
+ <family>Cambria Math</family> <!-- Microsoft -->
60
+ <family>Latin Modern Math</family> <!-- TeX -->
61
+ <family>Minion Math</family> <!-- Adobe -->
62
+ <family>Lucida Math</family> <!-- Adobe -->
63
+ <family>Asana Math</family>
64
+ </prefer>
65
+ </alias>
66
+
67
+ </fontconfig>
@@ -1,6 +1,11 @@
1
1
  <?xml version="1.0"?>
2
2
  <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
3
  <fontconfig>
4
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
5
+ <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
6
+ </its:rules>
7
+
8
+ <description>Set preferable fonts for Latin</description>
4
9
  <alias>
5
10
  <family>serif</family>
6
11
  <prefer>