56-twemoji-color.conf 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  2. <fontconfig>
  3. <!-- REQUIRES Noto fonts (along with Noto Color Emoji)
  4. run `fc-list | grep -i -e "noto sans" -e "noto serif" -e "noto color emoji"` to confirm
  5. -->
  6. <alias>
  7. <!-- Change the string in the family tag to whatever font -->
  8. <family>serif</family>
  9. <prefer><family>Noto Serif</family></prefer>
  10. </alias>
  11. <alias>
  12. <family>sans-serif</family>
  13. <prefer><family>Noto Sans</family></prefer>
  14. </alias>
  15. <alias>
  16. <family>sans</family>
  17. <prefer><family>Noto Sans</family></prefer>
  18. </alias>
  19. <alias>
  20. <family>monospace</family>
  21. <prefer><family>Noto Mono</family></prefer>
  22. </alias>
  23. <!-- This adds Noto Color Emoji to the font families sans, serif, sans-serif and monospace -->
  24. <match target="pattern">
  25. <test name="family"><string>monospace</string></test>
  26. <edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
  27. </match>
  28. <match target="pattern">
  29. <test name="family"><string>sans</string></test>
  30. <edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
  31. </match>
  32. <match target="pattern">
  33. <test name="family"><string>serif</string></test>
  34. <edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
  35. </match>
  36. <!-- Discord loads the system's sans-serif font family, add Noto Color Emoji to it -->
  37. <match target="pattern">
  38. <test name="family"><string>sans-serif</string></test>
  39. <edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
  40. </match>
  41. <!-- Add emoji generic family -->
  42. <alias binding="strong">
  43. <family>emoji</family>
  44. <default><family>Noto Color Emoji</family></default>
  45. </alias>
  46. <!-- Alias requests for the other emoji fonts -->
  47. <alias binding="strong">
  48. <family>Apple Color Emoji</family>
  49. <prefer><family>Noto Color Emoji</family></prefer>
  50. <default><family>emoji</family></default>
  51. </alias>
  52. <alias binding="strong">
  53. <family>Segoe UI Emoji</family>
  54. <prefer><family>Noto Color Emoji</family></prefer>
  55. <default><family>emoji</family></default>
  56. </alias>
  57. <!-- Run "fc-cache -fv" after saving the file and kill and restart whichever app (like discord) and enjoy emoji -->
  58. </fontconfig>