aboutsummaryrefslogtreecommitdiffstats
path: root/fontconfig
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-07-31 00:31:39 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-07-31 00:31:39 +0200
commit1d59434dfbe2bd3b6db453aa7c0df25ed7dece33 (patch)
tree0a952744f784224ee172d801abd10e3878a517df /fontconfig
parenta2bf7fd81a11a58e99fc09b18ba89f0ec072f2ef (diff)
downloaddotfiles-1d59434dfbe2bd3b6db453aa7c0df25ed7dece33.tar.xz
fontconfig: import
Diffstat (limited to 'fontconfig')
-rw-r--r--fontconfig/conf.d/90-no-Arial-Negreta.conf21
-rw-r--r--fontconfig/conf.d/90-no-TeXGyreHeros.conf12
-rw-r--r--fontconfig/fonts.conf80
3 files changed, 113 insertions, 0 deletions
diff --git a/fontconfig/conf.d/90-no-Arial-Negreta.conf b/fontconfig/conf.d/90-no-Arial-Negreta.conf
new file mode 100644
index 0000000..2c03fc0
--- /dev/null
+++ b/fontconfig/conf.d/90-no-Arial-Negreta.conf
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <rejectfont>
+ <pattern>
+ <patelt name="family"><string>Arial</string></patelt>
+ <patelt name="style"><string>negreta</string></patelt>
+ </pattern>
+ <pattern>
+ <patelt name="family"><string>Arial Black</string></patelt>
+ </pattern>
+ <pattern>
+ <patelt name="family"><string>Verdana</string></patelt>
+ <patelt name="style"><string>Negreta cursiva</string></patelt>
+ </pattern>
+
+ </rejectfont>
+</fontconfig>
+<!--
+ vim: ft=xml:ts=4:sw=4
+-->
diff --git a/fontconfig/conf.d/90-no-TeXGyreHeros.conf b/fontconfig/conf.d/90-no-TeXGyreHeros.conf
new file mode 100644
index 0000000..9776c3c
--- /dev/null
+++ b/fontconfig/conf.d/90-no-TeXGyreHeros.conf
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <rejectfont>
+ <pattern>
+ <patelt name="family"><string>TeX Gyre Heros</string></patelt>
+ </pattern>
+ </rejectfont>
+</fontconfig>
+<!--
+ vim: ft=xml:ts=4:sw=4
+-->
diff --git a/fontconfig/fonts.conf b/fontconfig/fonts.conf
new file mode 100644
index 0000000..e5f63f0
--- /dev/null
+++ b/fontconfig/fonts.conf
@@ -0,0 +1,80 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!--
+ ~/.config/fontconfig/fonts.conf
+ http://www.freedesktop.org/software/fontconfig/fontconfig-user.html
+-->
+<fontconfig>
+ <match target="font">
+ <edit name="antialias"> <bool>true</bool> </edit>
+ <edit name="rgba"> <const>rgb</const> </edit>
+ <edit name="hinting"> <bool>true</bool> </edit>
+ <edit name="hintstyle"> <const>hintmedium</const> </edit>
+ <edit name="autohint"> <bool>false</bool> </edit>
+ <edit name="lcdfilter"> <const>lcddefault</const> </edit>
+ <edit name="embeddedbitmap"><bool>false</bool> </edit>
+ </match>
+ <match target="font">
+ <test name="family" compare="contains">
+ <string>Inconsolata</string>
+ </test>
+ <edit name="hintstyle">
+ <const>hintslight</const>
+ </edit>
+ </match>
+
+ <selectfont>
+ <rejectfont>
+ <pattern>
+ <patelt name="family"><string>Nimbus Sans L</string></patelt>
+ </pattern>
+ <pattern>
+ <patelt name="family"><string>Nimbus Mono L</string></patelt>
+ </pattern>
+ <pattern>
+ <patelt name="family"><string>URW Palladio L</string></patelt>
+ </pattern>
+ <pattern>
+ <patelt name="family"><string>Clean</string></patelt>
+ </pattern>
+ <pattern>
+ <patelt name="family"><string>FreeSans</string></patelt>
+ </pattern>
+ </rejectfont>
+ </selectfont>
+
+ <!-- Re-enable embedded bitmaps for CJK fonts -->
+
+ <match target="font">
+ <test name="lang" compare="contains"> <string>ja</string> </test>
+ <edit name="embeddedbitmap"> <bool>true</bool> </edit>
+ </match>
+
+ <match target="font">
+ <test name="lang" compare="contains"> <string>ko</string> </test>
+ <edit name="embeddedbitmap"> <bool>true</bool> </edit>
+ </match>
+
+ <match target="font">
+ <test name="lang" compare="contains"> <string>zh</string> </test>
+ <edit name="embeddedbitmap"> <bool>true</bool> </edit>
+ </match>
+
+ <!-- Enable autohinting for certain broken fonts -->
+
+ <match target="font">
+ <test name="family"> <string>Segoe UI</string> </test>
+ <edit name="autohint"> <bool>true</bool> </edit>
+ </match>
+ <!--
+ <alias binding="same">
+ <family>sans-serif</family>
+ <accept>
+ <family>Source Sans Pro</family>
+ </accept>
+ </alias>
+ -->
+</fontconfig>
+<!--
+ vim: ft=xml:ts=4:sw=4
+-->