]> git.pld-linux.org Git - packages/fontconfig.git/commitdiff
- 10-lcd-filter.conf: use LCD filter for extra smooth fonts, for those auto/th/fontconfig-2_6_0-2 auto/ti/fontconfig-2_6_0-2
authorqrczak <qrczak@pld-linux.org>
Fri, 13 Jun 2008 15:15:07 +0000 (15:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  who want it.
- Release 2.

Changed files:
    fontconfig-lcd-filter.conf -> 1.1
    fontconfig.spec -> 1.81

fontconfig-lcd-filter.conf [new file with mode: 0644]
fontconfig.spec

diff --git a/fontconfig-lcd-filter.conf b/fontconfig-lcd-filter.conf
new file mode 100644 (file)
index 0000000..6d3c74f
--- /dev/null
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+  <match target="font">
+    <test name="fontformat" compare="eq">
+      <string>TrueType</string>
+    </test>
+    <edit mode="assign" name="hinting">
+      <bool>true</bool>
+    </edit>
+    <edit mode="assign" name="hintstyle">
+      <const>hintfull</const>
+    </edit>
+    <edit mode="assign" name="lcdfilter">
+      <const>lcddefault</const>
+    </edit>
+  </match>
+
+  <match target="font">
+    <test name="fontformat" compare="eq">
+      <string>CFF</string>
+    </test>
+    <edit mode="assign" name="hinting">
+      <bool>true</bool>
+    </edit>
+    <edit mode="assign" name="hintstyle">
+      <const>hintslight</const>
+    </edit>
+    <edit mode="assign" name="lcdfilter">
+      <const>lcdlight</const>
+    </edit>
+  </match>
+
+  <match target="font">
+    <test name="fontformat" compare="eq">
+      <string>Type 1</string>
+    </test>
+    <edit mode="assign" name="hinting">
+      <bool>true</bool>
+    </edit>
+    <edit mode="assign" name="hintstyle">
+      <const>hintslight</const>
+    </edit>
+    <edit mode="assign" name="lcdfilter">
+      <const>lcdlight</const>
+    </edit>
+  </match>
+</fontconfig>
index 2c232dd421c464804f7fb06377b0dad8aee8023b..16642b22d6e4433727ec6fc7e59cdcc171c10d90 100644 (file)
@@ -7,12 +7,13 @@ Summary(pl.UTF-8):    Narzędzia do konfigurowania fontów
 Summary(pt_BR.UTF-8):  Ferramentas para configuração e customização do acesso a fontes
 Name:          fontconfig
 Version:       2.6.0
-Release:       1
+Release:       2
 Epoch:         1
 License:       MIT
 Group:         Libraries
 Source0:       http://fontconfig.org/release/%{name}-%{version}.tar.gz
 # Source0-md5: ab54ec1d4ddd836313fdbc0cd5299d6d
+Source1:       %{name}-lcd-filter.conf
 Patch0:                %{name}-blacklist.patch
 Patch1:                %{name}-bitstream-cyberbit.patch
 URL:           http://fontconfig.org/
@@ -143,6 +144,8 @@ install -d $RPM_BUILD_ROOT{%{_mandir}/man{1,3,5},/var/cache/fontconfig}
        DESTDIR=$RPM_BUILD_ROOT \
        htmldoc_DATA= \
        doc_DATA=
+install %{SOURCE1} \
+       $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/10-lcd-filter.conf
 
 cp -f conf.d/README README.confd
 
This page took 0.261959 seconds and 4 git commands to generate.