Advertisement
Red-ex

infinality.conf

Apr 25th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. <?xml version='1.0'?>
  2. <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
  3. <fontconfig>
  4.  
  5. <!-- Choose an OS Rendering Style. This will determine B/W, grayscale,
  6. or subpixel antialising and slight, full or no hinting and replacements (if set in next option) -->
  7. <!-- Style should also be set in the infinality-settings.sh file, ususally in /etc/profile.d/ -->
  8.  
  9. <!-- Choose one of these options:
  10. Infinality - subpixel AA, minimal replacements/tweaks, sans=Arial
  11. Windows 7 - subpixel AA, sans=Arial
  12. Windows XP - subpixel AA, sans=Arial
  13. Windows 98 - B/W full hinting on TT fonts, grayscale AA for others, sans=Arial
  14. OSX - Slight hinting, subpixel AA, sans=Helvetica Neue
  15. OSX2 - No hinting, subpixel AA, sans=Helvetica Neue
  16. Linux - subpixel AA, sans=DejaVu Sans
  17.  
  18. === Recommended Setup ===
  19. Run ./infctl.sh script located in the current directory to set the style.
  20.  
  21. # ./infctl.sh setstyle
  22.  
  23. === Manual Setup ===
  24. See the infinality/styles.conf.avail/ directory for all options. To enable
  25. a different style, remove the symlink "conf.d" and link to another style:
  26.  
  27. # rm conf.d
  28. # ln -s styles.conf.avail/win7 conf.d
  29. -->
  30.  
  31. <!-- Uncomment this to reject all bitmap fonts -->
  32. <!-- Make sure to run this as root if having problems: fc-cache -f -->
  33. <!--
  34. <selectfont>
  35. <rejectfont>
  36. <pattern>
  37. <patelt name="scalable" >
  38. <bool>false</bool>
  39. </patelt>
  40. </pattern>
  41. </rejectfont>
  42. </selectfont>
  43. -->
  44.  
  45. <!-- Ban Type-1 fonts because they render poorly -->
  46. <!-- Comment this out to allow all Type 1 fonts -->
  47. <!--
  48. <selectfont>
  49. <rejectfont>
  50. <pattern>
  51. <patelt name="fontformat" >
  52. <string>Type 1</string>
  53. </patelt>
  54. </pattern>
  55. </rejectfont>
  56. </selectfont> -->
  57.  
  58. <!-- Globally use embedded bitmaps in fonts like Calibri? -->
  59. <match target="font" >
  60. <edit name="embeddedbitmap" mode="assign">
  61. <bool>false</bool>
  62. </edit>
  63. </match>
  64.  
  65. <!-- Substitute truetype fonts in place of bitmap ones? -->
  66. <match target="pattern" >
  67. <edit name="prefer_outline" mode="assign">
  68. <bool>true</bool>
  69. </edit>
  70. </match>
  71.  
  72. <!-- Do font substitutions for the set style? -->
  73. <!-- NOTE: Custom substitutions in 42-repl-global.conf will still be done -->
  74. <!-- NOTE: Corrective substitutions will still be done -->
  75. <match target="pattern" >
  76. <edit name="do_substitutions" mode="assign">
  77. <bool>true</bool>
  78. </edit>
  79. </match>
  80.  
  81. <!-- Make (some) monospace/coding TTF fonts render as bitmaps? -->
  82. <!-- courier new, andale mono, monaco, etc. -->
  83. <match target="pattern" >
  84. <edit name="bitmap_monospace" mode="assign">
  85. <bool>false</bool>
  86. </edit>
  87. </match>
  88.  
  89. <!-- Force autohint always -->
  90. <!-- Useful for debugging and for free software purists -->
  91. <match target="font">
  92. <edit name="force_autohint" mode="assign">
  93. <bool>false</bool>
  94. </edit>
  95. </match>
  96.  
  97. <!-- Set DPI. dpi should be set in ~/.Xresources to 96 -->
  98. <!-- Setting to 72 here makes the px to pt conversions work better (Chrome) -->
  99. <!-- Some may need to set this to 96 though -->
  100. <match target="pattern">
  101. <edit name="dpi" mode="assign">
  102. <double>96</double>
  103. </edit>
  104. </match>
  105.  
  106. <!-- Use Qt subpixel positioning on autohinted fonts? -->
  107. <!-- This only applies to Qt and autohinted fonts. Qt determines subpixel positioning based on hintslight vs. hintfull, -->
  108. <!-- however infinality patches force slight hinting inside freetype, so this essentially just fakes out Qt. -->
  109. <!-- Should only be set to true if you are not doing any stem alignment or fitting in environment variables -->
  110. <match target="pattern" >
  111. <edit name="qt_use_subpixel_positioning" mode="assign">
  112. <bool>false</bool>
  113. </edit>
  114. </match>
  115.  
  116. <!-- Run infctl.sh or change the symlink in current directory instead of modifying this -->
  117. <include>infinality/conf.d</include>
  118.  
  119. </fontconfig>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement