summaryrefslogtreecommitdiff
path: root/fonts/conf.d/10-no-sub-pixel.conf
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/conf.d/10-no-sub-pixel.conf')
-rw-r--r--fonts/conf.d/10-no-sub-pixel.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/fonts/conf.d/10-no-sub-pixel.conf b/fonts/conf.d/10-no-sub-pixel.conf
new file mode 100644
index 0000000..635847c
--- /dev/null
+++ b/fonts/conf.d/10-no-sub-pixel.conf
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!-- Disable sub-pixel rendering -->
+ <match target="pattern">
+ <!--
+ This configuration is available on the major desktop environments.
+ We shouldn't overwrite it with "assign" unconditionally.
+ Most clients may picks up the first value only. so using "append"
+ may simply works to avoid it.
+ -->
+ <edit name="rgba" mode="append"><const>none</const></edit>
+ </match>
+</fontconfig>