No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

65 líneas
1.7 KiB

  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <fontconfig>
  4. <!--
  5. Artificial oblique for fonts without an italic or oblique version
  6. -->
  7. <match target="font">
  8. <!-- check to see if the font is roman -->
  9. <test name="slant">
  10. <const>roman</const>
  11. </test>
  12. <!-- check to see if the pattern requested non-roman -->
  13. <test target="pattern" name="slant" compare="not_eq">
  14. <const>roman</const>
  15. </test>
  16. <!-- multiply the matrix to slant the font -->
  17. <edit name="matrix" mode="assign">
  18. <times>
  19. <name>matrix</name>
  20. <matrix><double>1</double><double>0.2</double>
  21. <double>0</double><double>1</double>
  22. </matrix>
  23. </times>
  24. </edit>
  25. <!-- pretend the font is oblique now -->
  26. <edit name="slant" mode="assign">
  27. <const>oblique</const>
  28. </edit>
  29. <!-- and disable embedded bitmaps for artificial oblique -->
  30. <edit name="embeddedbitmap" mode="assign">
  31. <bool>false</bool>
  32. </edit>
  33. </match>
  34. <!--
  35. Synthetic emboldening for fonts that do not have bold face available
  36. -->
  37. <match target="font">
  38. <!-- check to see if the font is just regular -->
  39. <test name="weight" compare="less_eq">
  40. <const>medium</const>
  41. </test>
  42. <!-- check to see if the pattern requests bold -->
  43. <test target="pattern" name="weight" compare="more">
  44. <const>medium</const>
  45. </test>
  46. <!--
  47. set the embolden flag
  48. needed for applications using cairo, e.g. gucharmap, gedit, ...
  49. -->
  50. <edit name="embolden" mode="assign">
  51. <bool>true</bool>
  52. </edit>
  53. <!--
  54. set weight to bold
  55. needed for applications using Xft directly, e.g. Firefox, ...
  56. -->
  57. <edit name="weight" mode="assign">
  58. <const>bold</const>
  59. </edit>
  60. </match>
  61. </fontconfig>