spacepaste

  1.  
  2. diff -Naur a/fontconfig/56-twemoji-color.conf b/fontconfig/56-twemoji-color.conf
  3. --- a/fontconfig/56-twemoji-color.conf 2017-09-01 00:23:23.091538971 -0300
  4. +++ b/fontconfig/56-twemoji-color.conf 2017-09-01 00:33:28.751550884 -0300
  5. @@ -26,98 +26,29 @@
  6. fc-match -s monospace
  7. -->
  8. <fontconfig>
  9. - <match target="font">
  10. - <!-- If the requested font is Bitstream Vera Serif -->
  11. - <test name="family" compare="eq">
  12. - <string>Bitstream Vera Serif</string>
  13. - </test>
  14. - <!-- Replace the entire match list with Bitstream Vera Serif alone -->
  15. - <edit name="family" mode="assign_replace">
  16. - <string>Bitstream Vera Serif</string>
  17. - </edit>
  18. - <!-- Assign the serif family -->
  19. - <edit name="family" mode="append_last">
  20. - <string>serif</string>
  21. - </edit>
  22. - </match>
  23. + <alias>
  24. + <family>sans-serif</family>
  25. + <prefer>
  26. + <family>Twitter Color Emoji</family>
  27. + <family>Bitstream Vera Sans</family>
  28. + </prefer>
  29. + </alias>
  30. + <alias>
  31. + <family>serif</family>
  32. + <prefer>
  33. + <family>Twitter Color Emoji</family>
  34. + <family>Bitstream Vera Serif</family>
  35. + </prefer>
  36. + </alias>
  37. +
  38. + <alias>
  39. + <family>monospace</family>
  40. + <prefer>
  41. + <family>Twitter Color Emoji</family>
  42. + <family>Bitstream Vera Sans Mono</family>
  43. + </prefer>
  44. + </alias>
  45. - <match>
  46. - <!-- If the requested font is serif -->
  47. - <test qual="any" name="family">
  48. - <string>serif</string>
  49. - </test>
  50. - <!-- Make Bitstream Vera Serif the first result -->
  51. - <edit name="family" mode="prepend_first">
  52. - <string>Bitstream Vera Serif</string>
  53. - </edit>
  54. - <!-- Followed by Twitter Color Emoji -->
  55. - <edit name="family" mode="prepend_first">
  56. - <string>Twitter Color Emoji</string>
  57. - </edit>
  58. - </match>
  59. -
  60. - <match target="font">
  61. - <!-- If the requested font is Bitstream Vera Sans -->
  62. - <test name="family" compare="eq">
  63. - <string>Bitstream Vera Sans</string>
  64. - </test>
  65. - <!-- Replace the entire match list with Bitstream Vera Sans alone -->
  66. - <edit name="family" mode="assign_replace">
  67. - <string>Bitstream Vera Sans</string>
  68. - </edit>
  69. - <!-- Assign the sans-serif family -->
  70. - <edit name="family" mode="append_last">
  71. - <string>sans-serif</string>
  72. - </edit>
  73. - </match>
  74. -
  75. - <match target="pattern">
  76. - <!-- If the requested font is sans-serif -->
  77. - <test qual="any" name="family">
  78. - <string>sans-serif</string>
  79. - </test>
  80. - <!-- Make Bitstream Vera Sans the first result -->
  81. - <edit name="family" mode="prepend_first">
  82. - <string>Bitstream Vera Sans</string>
  83. - </edit>
  84. - <!-- Followed by Twitter Color Emoji -->
  85. - <edit name="family" mode="prepend_first">
  86. - <string>Twitter Color Emoji</string>
  87. - </edit>
  88. - </match>
  89. -
  90. - <match target="font">
  91. - <!-- If the requested font is Bitstream Vera Sans Mono -->
  92. - <test name="family" compare="eq">
  93. - <string>Bitstream Vera Sans Mono</string>
  94. - </test>
  95. - <!-- Replace the entire match list with Bitstream Vera Sans Mono alone -->
  96. - <edit name="family" mode="assign_replace">
  97. - <string>Bitstream Vera Sans Mono</string>
  98. - </edit>
  99. - <!-- Assign the monospace family last -->
  100. - <edit name="family" mode="append_last">
  101. - <string>monospace</string>
  102. - </edit>
  103. - </match>
  104. -
  105. - <match target="pattern">
  106. - <!-- If the requested font is monospace -->
  107. - <test qual="any" name="family">
  108. - <string>monospace</string>
  109. - </test>
  110. - <!--
  111. - Make Bitstream Vera Sans Mono the first result
  112. - Note: If you want a different monospace font, this is where you change it.
  113. - -->
  114. - <edit name="family" mode="prepend_first">
  115. - <string>Bitstream Vera Sans Mono</string>
  116. - </edit>
  117. - <!-- Followed by Twitter Color Emoji -->
  118. - <edit name="family" mode="prepend_first">
  119. - <string>Twitter Color Emoji</string>
  120. - </edit>
  121. - </match>
  122. <!-- Add emoji generic family -->
  123. <alias binding="strong">
  124.