about summary refs log tree commit diff stats
path: root/sys/font/font.xml
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-08-28 20:25:52 +0200
committerSoispha <soispha@vhack.eu>2023-08-28 20:25:52 +0200
commit595fff4738e9e3c358154d04d875c1f54bcc38c3 (patch)
treea1aaea2c5bf2f4dd25e58254714a2060815767bb /sys/font/font.xml
parentRefactor(hm/conf/alacritty): Split the configuration in separate files (diff)
downloadnixos-config-595fff4738e9e3c358154d04d875c1f54bcc38c3.zip
Fix(sys/font): Add default fonts with nerd fonts support
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>