Bug 27385 - lcdfilter settings for freetype-2.3.12 not available in fontconfig-2.8.0
authorAkira TAGOH <akira@tagoh.org>
Thu, 23 Feb 2012 06:23:23 +0000 (15:23 +0900)
committerAkira TAGOH <akira@tagoh.org>
Thu, 23 Feb 2012 06:23:23 +0000 (15:23 +0900)
Add config files for FT_LcdFilter options.

Patch from Robin Johnson.

conf.d/11-lcdfilter-default.conf [new file with mode: 0644]
conf.d/11-lcdfilter-legacy.conf [new file with mode: 0644]
conf.d/11-lcdfilter-light.conf [new file with mode: 0644]
conf.d/Makefile.am

diff --git a/conf.d/11-lcdfilter-default.conf b/conf.d/11-lcdfilter-default.conf
new file mode 100644 (file)
index 0000000..040a4ac
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!--  Use lcddefault as default for LCD filter -->
+  <match target="font">
+    <edit mode="assign" name="lcdfilter">
+      <const>lcddefault</const>
+    </edit>
+  </match>
+</fontconfig>
diff --git a/conf.d/11-lcdfilter-legacy.conf b/conf.d/11-lcdfilter-legacy.conf
new file mode 100644 (file)
index 0000000..218585c
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!--  Use lcdlegacy as default for LCD filter -->
+  <match target="font">
+    <edit mode="assign" name="lcdfilter">
+      <const>lcdlegacy</const>
+    </edit>
+  </match>
+</fontconfig>
diff --git a/conf.d/11-lcdfilter-light.conf b/conf.d/11-lcdfilter-light.conf
new file mode 100644 (file)
index 0000000..d38a66e
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!--  Use lcdlight as default for LCD filter -->
+  <match target="font">
+    <edit mode="assign" name="lcdfilter">
+      <const>lcdlight</const>
+    </edit>
+  </match>
+</fontconfig>
index 3f5255f..d122a8f 100644 (file)
@@ -32,6 +32,9 @@ CONF_FILES = \
        10-sub-pixel-vbgr.conf \
        10-sub-pixel-vrgb.conf \
        10-unhinted.conf \
+       11-lcdfilter-default.conf \
+       11-lcdfilter-legacy.conf \
+       11-lcdfilter-light.conf \
        20-fix-globaladvance.conf \
        20-unhint-small-vera.conf \
        25-unhint-nonlatin.conf \