anymetrics_urw.patch 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. Index: fontconfig-2.8.0/conf.d/30-urw-aliases.conf
  2. ===================================================================
  3. --- fontconfig-2.8.0.orig/conf.d/30-urw-aliases.conf
  4. +++ fontconfig-2.8.0/conf.d/30-urw-aliases.conf
  5. @@ -5,6 +5,13 @@
  6. URW provides metric and shape compatible fonts for some Adobe families.
  7. Helvetica, Courier, and Times are handled in 30-metric-aliases.conf.
  8. -->
  9. +
  10. +<!--
  11. + However, these fonts are quite ugly and do not render well on-screen,
  12. + so we avoid matching them if the application said `anymetrics'; in that
  13. + case, a more generic font with different metrics but better appearance
  14. + will be used.
  15. +
  16. <alias binding="same">
  17. <family>Avant Garde</family>
  18. <accept><family>URW Gothic L</family></accept>
  19. @@ -29,6 +36,109 @@
  20. <family>Zapf Dingbats</family>
  21. <accept><family>Dingbats</family></accept>
  22. </alias>
  23. + -->
  24. +
  25. + <match target="pattern">
  26. + <test name="family">
  27. + <string>Avant Garde</string>
  28. + </test>
  29. + <test name="anymetrics" qual="all" compare="not_eq">
  30. + <bool>true</bool>
  31. + </test>
  32. + <edit name="family" mode="append">
  33. + <string>URW Gothic L</string>
  34. + </edit>
  35. + </match>
  36. + <match target="pattern">
  37. + <test name="family">
  38. + <string>Bookman</string>
  39. + </test>
  40. + <test name="anymetrics" qual="all" compare="not_eq">
  41. + <bool>true</bool>
  42. + </test>
  43. + <edit name="family" mode="append">
  44. + <string>URW Bookman L</string>
  45. + </edit>
  46. + </match>
  47. + <match target="pattern">
  48. + <test name="family">
  49. + <string>Courier</string>
  50. + </test>
  51. + <test name="anymetrics" qual="all" compare="not_eq">
  52. + <bool>true</bool>
  53. + </test>
  54. + <edit name="family" mode="append">
  55. + <string>Nimbus Mono L</string>
  56. + </edit>
  57. + </match>
  58. + <match target="pattern">
  59. + <test name="family">
  60. + <string>Helvetica</string>
  61. + </test>
  62. + <test name="anymetrics" qual="all" compare="not_eq">
  63. + <bool>true</bool>
  64. + </test>
  65. + <edit name="family" mode="append">
  66. + <string>Nimbus Sans L</string>
  67. + </edit>
  68. + </match>
  69. + <match target="pattern">
  70. + <test name="family">
  71. + <string>New Century Schoolbook</string>
  72. + </test>
  73. + <test name="anymetrics" qual="all" compare="not_eq">
  74. + <bool>true</bool>
  75. + </test>
  76. + <edit name="family" mode="append">
  77. + <string>Century Schoolbook L</string>
  78. + </edit>
  79. + </match>
  80. + <match target="pattern">
  81. + <test name="family">
  82. + <string>Palatino</string>
  83. + </test>
  84. + <test name="anymetrics" qual="all" compare="not_eq">
  85. + <bool>true</bool>
  86. + </test>
  87. + <edit name="family" mode="append">
  88. + <string>URW Palladio L</string>
  89. + </edit>
  90. + </match>
  91. + <match target="pattern">
  92. + <test name="family">
  93. + <string>Times</string>
  94. + </test>
  95. + <test name="anymetrics" qual="all" compare="not_eq">
  96. + <bool>true</bool>
  97. + </test>
  98. + <edit name="family" mode="append">
  99. + <string>Nimbus Roman No9 L</string>
  100. + </edit>
  101. + </match>
  102. + <match target="pattern">
  103. + <test name="family">
  104. + <string>Zapf Chancery</string>
  105. + </test>
  106. + <test name="anymetrics" qual="all" compare="not_eq">
  107. + <bool>true</bool>
  108. + </test>
  109. + <edit name="family" mode="append">
  110. + <string>URW Chancery L</string>
  111. + </edit>
  112. + </match>
  113. + <match target="pattern">
  114. + <test name="family">
  115. + <string>Zapf Dingbats</string>
  116. + </test>
  117. + <test name="anymetrics" qual="all" compare="not_eq">
  118. + <bool>true</bool>
  119. + </test>
  120. + <edit name="family" mode="append">
  121. + <string>Dingbats</string>
  122. + </edit>
  123. + </match>
  124. +
  125. +
  126. <match target="pattern">
  127. <test name="family">
  128. <string>Symbol</string>