* .config/fontconfig/fonts.conf: Use FreeSans and Sahel for sans-serif.
authorAmin Bandali <bandali@kelar.org>
Sun, 15 May 2022 02:46:51 +0000 (22:46 -0400)
committerAmin Bandali <bandali@kelar.org>
Fri, 20 May 2022 02:20:02 +0000 (22:20 -0400)
GNU FreeSans for English and Sahel for Persian.

.config/fontconfig/fonts.conf

index 083ece3..b6f868b 100644 (file)
   <prefer>
    <family>Liberation Sans</family>
   </prefer>
-</alias>
+ </alias>
+
+ <alias binding="strong">
+  <family>sans-serif</family>
+  <prefer>
+   <family>FreeSans</family>
+   <family>Sahel WOL</family>
+   <family>Liberation Sans</family>
+   <family>Roboto</family>
+  </prefer>
+ </alias>
+
+ <match target="pattern">
+  <test name="lang" compare="contains">
+   <string>fa</string>
+  </test>
+  <test qual="any" name="family">
+   <string>sans-serif</string>
+  </test>
+  <edit name="family" mode="prepend" binding="strong">
+   <string>Sahel WOL</string>
+  </edit>
+  <edit name="family" mode="prepend" binding="strong">
+   <string>FreeSans</string>
+  </edit>
+  <edit name="family" mode="prepend" binding="strong">
+   <string>Sahel</string>
+  </edit>
+ </match>
 </fontconfig>