about summary refs log tree commit diff stats
path: root/sys/font/font.xml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sys/font/font.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/font/font.xml b/sys/font/font.xml
new file mode 100644
index 00000000..4248cc01
--- /dev/null
+++ b/sys/font/font.xml
@@ -0,0 +1,25 @@
+<!-- NOTE: This is responsible for color emoji support <2023-08-28> -->
+<!-- WARNING: This [link](https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/111#note_630720)
+              contains some discussion about, the below code. But it's down right now. <2023-08-28> -->
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+  <alias binding="weak">
+    <family>monospace</family>
+    <prefer>
+      <family>emoji</family>
+    </prefer>
+  </alias>
+  <alias binding="weak">
+    <family>sans-serif</family>
+    <prefer>
+      <family>emoji</family>
+    </prefer>
+  </alias>
+  <alias binding="weak">
+    <family>serif</family>
+    <prefer>
+      <family>emoji</family>
+    </prefer>
+  </alias>
+</fontconfig>