]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.graphviz/dot/etc/fonts/conf.d/49-sansserif.conf
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.graphviz / dot / etc / fonts / conf.d / 49-sansserif.conf
diff --git a/bundles/org.simantics.graphviz/dot/etc/fonts/conf.d/49-sansserif.conf b/bundles/org.simantics.graphviz/dot/etc/fonts/conf.d/49-sansserif.conf
new file mode 100755 (executable)
index 0000000..c6209a7
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!--
+  If the font still has no generic name, add sans-serif
+ -->
+       <match target="pattern">
+               <test qual="all" name="family" compare="not_eq">
+                       <string>sans-serif</string>
+               </test>
+               <test qual="all" name="family" compare="not_eq">
+                       <string>serif</string>
+               </test>
+               <test qual="all" name="family" compare="not_eq">
+                       <string>monospace</string>
+               </test>
+               <edit name="family" mode="append_last">
+                       <string>sans-serif</string>
+               </edit>
+       </match>
+</fontconfig>