chemoelectric

README from Crud Factory Fontconfig (2010)

Nov 6th, 2025
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. Crud Factory Fontconfig
  2. -----------------------
  3.  
  4. Differences from freedesktop.org Fontconfig:
  5.  
  6. * Property priority order can be set in XML, for example:
  7.  
  8. <priority>
  9. <name>family</name>
  10. <name>style</name>
  11. </priority>
  12.  
  13. The default duplicates the hardcoded settings of freedesktop.org
  14. Fontconfig 2.8:
  15.  
  16. <priority>
  17. <name>foundry</name>
  18. <name>charset</name>
  19. <name>family</name>
  20. <name>lang</name>
  21. <name>family</name>
  22. <name>spacing</name>
  23. <name>pixelsize</name>
  24. <name>style</name>
  25. <name>slant</name>
  26. <name>weight</name>
  27. <name>width</name>
  28. <name>decorative</name>
  29. <name>antialias</name>
  30. <name>rasterizer</name>
  31. <name>outline</name>
  32. <name>fontversion</name>
  33. </priority>
  34.  
  35. * Preferred family/style and WWS family/style are kept distinct
  36. from the "normal" family/style and each other. For
  37. TrueType/OpenType fonts, the preferred names and/or WWS names
  38. need not be explicitly present in the font; Crud Factory
  39. Fontconfig will use fallback values. Thus, very often, the
  40. "normal", "preferred", and "WWS" names are the same.
  41.  
  42. By default one works with the "normal" family/style. To work
  43. with WWS family/style instead, try
  44.  
  45. <match target="scan">
  46. <test name="wwsfamily" compare="not_eq" target="font"><string></string></test>
  47. <edit mode="assign" name="family"><name>wwsfamily</name></edit>
  48. <test name="wwsstyle" compare="not_eq" target="font"><string></string></test>
  49. <edit mode="assign" name="style"><name>wwsstyle</name></edit>
  50. </match>
  51.  
  52. This will cause family/style to be replaced with WWS
  53. family/style at scan time. For almost all current fonts (in the
  54. year 2010) this won't make any difference. What would make a
  55. difference is to use the preferred family/style instead of the
  56. WWS values; unfortunately GIMP, Inkscape, and probably many
  57. other programs would end up severely broken, because they make
  58. assumptions about font names that do not apply to preferred
  59. names. Indeed, the frequently used free software library, Pango,
  60. employs an abstract model of fonts that, if not augmented,
  61. is incompatible with preferred names.
  62.  
  63. (Freedesktop.org Fontconfig's font matcher not only employs
  64. preferred names, thus breaking all Pango-based programs, but
  65. freely mixes preferred family with "normal" style, WWS style
  66. with preferred family, and so on. Choosing fonts from large,
  67. complex families becomes like the spin of a roulette wheel.)
  68.  
Advertisement
Add Comment
Please, Sign In to add comment