Advertisement
Guest User

Untitled

a guest
Sep 4th, 2014
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.92 KB | None | 0 0
  1. ?xml version='1.0'?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <fontconfig>
  4. <match target="pattern">
  5.  
  6. <!-- Font rasterization converts vector font data to bitmap data so that it
  7. can be displayed. The result can appear jagged due to aliasing.
  8. Anti-aliasing increases the apparent resolution of font edges. -->
  9. <edit mode="append" name="antialias">
  10. <bool>true</bool>
  11. </edit>
  12.  
  13. <!-- Using normal hinting, TrueType hinting instructions in the font are
  14. interpreted by freetype's Byte-Code Interpreter. This works best for
  15. fonts with good hinting instructions. -->
  16. <edit mode="append" name="hinting">
  17. <bool>true</bool>
  18. </edit>
  19.  
  20. <!-- Auto-discovery for hinting. This looks worse than normal hinting for
  21. fonts with good instructions, but better for those with poor or no
  22. instructions. The autohinter and subpixel rendering are not designed
  23. to work together and should not be used in combination. -->
  24. <edit mode="append" name="autohint">
  25. <bool>false</bool>
  26. </edit>
  27.  
  28. <!-- Hint style is the amount of influence the hinting mode has. Hinting
  29. can be set to: "hintfull", "hintmedium", "hintslight" and "hintnone".
  30. With BCI hinting, "hintfull" should work best for most fonts.
  31. With the autohinter, "hintslight" is recommended. -->
  32. <edit mode="append" name="hintstyle">
  33. <const>hintslight</const>
  34. </edit>
  35.  
  36. <!-- Subpixel rendering effectively triples the horizontal (or vertical)
  37. resolution for fonts by making use of subpixels. The autohinter and
  38. subpixel rendering are not designed to work together and should not
  39. be used in combination. Most monitors manufactured today use the
  40. Red, Green, Blue (RGB) specification. Fontconfig will need to know
  41. your monitor type to be able to display your fonts correctly.
  42. Values are "rgb" (most common), "bgr", "vrgb" (vertical), "vbgr",
  43. "unknown" or "none". -->
  44. <edit mode="append" name="rgba">
  45. <const>rgb</const>
  46. </edit>
  47.  
  48. <!-- When using subpixel rendering, you should enable the LCD filter,
  49. which is designed to reduce colour fringing. The "lcddefault" filter
  50. will work for most users. Other filters are available that can be
  51. used in special situations: "lcdlight"; a lighter filter ideal for
  52. fonts that look too bold or fuzzy; "lcdlegacy", the original Cairo
  53. filter; "lcdnone" to disable it entirely. -->
  54. <edit mode="append" name="lcdfilter">
  55. <const>lcddefault</const>
  56. </edit>
  57.  
  58. <!-- Fontconfig should be able to detect DPI parameters as discovered
  59. by the Xorg server. You can check Xorg's automatically discovered
  60. DPI with the command 'xdpyinfo | grep resolution'
  61. Uncomment the following to activate customized DPI -->
  62. <!--
  63. <edit mode="append" name="dpi">
  64. <double>96</double>
  65. </edit>
  66. -->
  67.  
  68. <!-- Some scalable fonts have embedded bitmap versions which are rendered
  69. instead, mainly at smaller sizes. Force using scalable fonts at all
  70. sizes by disabling embedded bitmap. -->
  71. <edit mode="append" name="embeddedbitmap">
  72. <bool>false</bool>
  73. </edit>
  74.  
  75. </match>
  76.  
  77. <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
  78. <selectfont><rejectfont><pattern>
  79. <patelt name="scalable"><bool>false</bool></patelt>
  80. </pattern></rejectfont></selectfont>
  81.  
  82.  
  83. <!-- Use font substitution to set your preferred fonts the default
  84. serif, sans-serif and monospace fonts. You can also substitute
  85. a specific font not installed on the system (e.g. Arial) with
  86. an installed one (e.g. FreeSans) by adding other aliases like
  87. these. This only works if the original font is not on the system. -->
  88. <alias>
  89. <family>serif</family>
  90. <prefer><family>DejaVu Serif</family></prefer>
  91. </alias>
  92. <alias>
  93. <family>sans-serif</family>
  94. <prefer><family>Ubuntu</family></prefer>
  95. </alias>
  96. <alias>
  97. <family>monospace</family>
  98. <prefer><family>Ubuntu Mono</family></prefer>
  99. </alias>
  100. <!--
  101. <alias>
  102. <family>Arial</family>
  103. <prefer><family>FreeSans</family></prefer>
  104. </alias>
  105. -->
  106.  
  107.  
  108. <!-- Fixes for Ubuntu family:
  109. - Medium variant is used instead of Regular on Qt apps:
  110. https://bugs.launchpad.net/ubuntu-font-family/+bug/744812
  111. - Medium and Bold looks the same in certain applications:
  112. https://bugs.launchpad.net/ubuntu/+source/gnome-specimen/+bug/813373
  113. -->
  114. <match target="scan">
  115. <test name="fullname" compare="eq">
  116. <string>Ubuntu Light</string>
  117. </test>
  118. <edit name="family" mode="assign">
  119. <string>Ubuntu</string>
  120. </edit>
  121. <edit name="style" mode="assign">
  122. <string>Light</string>
  123. </edit>
  124. </match>
  125.  
  126. <match target="scan">
  127. <test name="fullname" compare="eq">
  128. <string>Ubuntu Light Italic</string>
  129. </test>
  130. <edit name="family" mode="assign">
  131. <string>Ubuntu</string>
  132. </edit>
  133. <edit name="style" mode="assign">
  134. <string>Light Italic</string>
  135. </edit>
  136. </match>
  137.  
  138. <match target="scan">
  139. <test name="fullname" compare="eq">
  140. <string>Ubuntu Medium</string>
  141. </test>
  142. <edit name="family" mode="assign">
  143. <string>Ubuntu</string>
  144. </edit>
  145. <edit name="style" mode="assign">
  146. <string>Medium</string>
  147. </edit>
  148. <edit name="weight" mode="assign">
  149. <const>demibold</const>
  150. </edit>
  151. </match>
  152.  
  153. <match target="scan">
  154. <test name="fullname" compare="eq">
  155. <string>Ubuntu Medium Italic</string>
  156. </test>
  157. <edit name="family" mode="assign">
  158. <string>Ubuntu</string>
  159. </edit>
  160. <edit name="style" mode="assign">
  161. <string>Medium Italic</string>
  162. </edit>
  163. <edit name="weight" mode="assign">
  164. <const>demibold</const>
  165. </edit>
  166. </match>
  167.  
  168. </fontconfig>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement