Add 10-hinting-slight.conf file.
authorYoungbok Shin <youngb.shin@samsung.com>
Thu, 5 Feb 2015 02:07:37 +0000 (11:07 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Fri, 6 Feb 2015 10:40:09 +0000 (19:40 +0900)
This commit is requested for browser and chromium hinting issue.

Change-Id: I644f718bc3ada805f08e8041aed37a4de401c615

default-fonts-fc-sdk.init.sh
packaging/default-fonts-fc-sdk.spec
sdk_fonts_fc/10-hinting-slight.conf [new file with mode: 0755]

index 0dc29a2..e615626 100755 (executable)
@@ -1 +1 @@
-cp -p /usr/opt/etc/fonts/conf.avail/99-slp.conf /opt/etc/fonts/conf.avail/99-slp.conf
+cp -p /usr/opt/etc/fonts/conf.avail/*.conf /opt/etc/fonts/conf.avail/
index 089ee67..8be2f47 100644 (file)
@@ -20,7 +20,8 @@ This package is maintained by SDK team
 cp %{SOURCE1001} .
 
 %install
-export FONT_CONF_FILE="99-slp.conf"
+export FONT_CONF_FILE_1="99-slp.conf"
+export FONT_CONF_FILE_2="10-hinting-slight.conf"
 
 rm -rf %{buildroot}
 mkdir -p %{buildroot}/opt/etc/fonts/conf.avail/
@@ -28,19 +29,20 @@ mkdir -p %{buildroot}/etc/opt/init/ && cp -a default-fonts-fc-sdk.init.sh %{buil
 mkdir -p %{buildroot}/usr/etc/fonts/conf.d/
 mkdir -p %{buildroot}/usr/opt/etc/fonts/conf.avail/ && cp -a sdk_fonts_fc/* %{buildroot}/usr/opt/etc/fonts/conf.avail/
 cd %{buildroot}/usr/etc/fonts/conf.d/
-ln -s ../../../../opt/etc/fonts/conf.avail/$FONT_CONF_FILE %{buildroot}/usr/etc/fonts/conf.d/$FONT_CONF_FILE
+ln -s ../../../../opt/etc/fonts/conf.avail/$FONT_CONF_FILE_1 %{buildroot}/usr/etc/fonts/conf.d/$FONT_CONF_FILE_1
+ln -s ../../../../opt/etc/fonts/conf.avail/$FONT_CONF_FILE_2 %{buildroot}/usr/etc/fonts/conf.d/$FONT_CONF_FILE_2
 
 %post
-chown root:app /usr/opt/etc/fonts/conf.avail/99-slp.conf
-chmod 664 /usr/opt/etc/fonts/conf.avail/99-slp.conf
+chown root:app /usr/opt/etc/fonts/conf.avail/*.conf
+chmod 664 /usr/opt/etc/fonts/conf.avail/*.conf
 /etc/opt/init/default-fonts-fc-sdk.init.sh
-chsmack -a '*' /opt/etc/fonts/conf.avail/99-slp.conf
+chsmack -a '*' /opt/etc/fonts/conf.avail/*.conf
 
 %files
 %manifest default-fonts-fc-sdk.manifest
 %defattr(-,root,root,-)
-/usr/opt/etc/fonts/conf.avail/99-slp.conf
-/usr/etc/fonts/conf.d/99-slp.conf
+/usr/opt/etc/fonts/conf.avail/*.conf
+/usr/etc/fonts/conf.d/*.conf
 /etc/opt/init/default-fonts-fc-sdk.init.sh
 /opt/etc/fonts/conf.avail/
 %exclude /usr/etc/fonts/conf.d/documentation.list
diff --git a/sdk_fonts_fc/10-hinting-slight.conf b/sdk_fonts_fc/10-hinting-slight.conf
new file mode 100755 (executable)
index 0000000..2073d96
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!--  Use Slight Hinting -->
+  <match target="font">
+    <edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
+  </match>
+</fontconfig>