summaryrefslogtreecommitdiff
path: root/cantarell-fontconfig.conf
diff options
context:
space:
mode:
Diffstat (limited to 'cantarell-fontconfig.conf')
-rw-r--r--cantarell-fontconfig.conf33
1 files changed, 33 insertions, 0 deletions
diff --git a/cantarell-fontconfig.conf b/cantarell-fontconfig.conf
new file mode 100644
index 0000000..bc9f574
--- /dev/null
+++ b/cantarell-fontconfig.conf
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<!--
+
+ Define aliasing and other fontconfig settings for Cantarell.
+
+-->
+<fontconfig>
+ <!-- Font substitution -->
+ <alias binding="same">
+ <family>system-ui</family>
+ <accept>
+ <family>Cantarell</family>
+ </accept>
+ </alias>
+
+ <!-- Generic name assignment -->
+ <alias>
+ <family>Cantarell</family>
+ <default>
+ <family>system-ui</family>
+ </default>
+ </alias>
+
+ <match target="pattern">
+ <test qual="any" name="family">
+ <string>Cantarell</string>
+ </test>
+ <edit name="family" mode="assign" binding="weak">
+ <string>Cantarell</string>
+ </edit>
+ </match>
+</fontconfig>