summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2015-02-05 02:07:37 (GMT)
committerYoungbok Shin <youngb.shin@samsung.com>2015-02-06 10:40:09 (GMT)
commit36f4c43e0dfa7de12fb3c4070b138bb7af28e0fb (patch)
tree4246e1b44cf62e5a9930b83e43fd751955b8608d
parent31279ffa9d2849fc0fcc988b8c25d46d3688963a (diff)
downloaddefault-fonts-fc-sdk-36f4c43e0dfa7de12fb3c4070b138bb7af28e0fb.zip
default-fonts-fc-sdk-36f4c43e0dfa7de12fb3c4070b138bb7af28e0fb.tar.gz
default-fonts-fc-sdk-36f4c43e0dfa7de12fb3c4070b138bb7af28e0fb.tar.bz2
Add 10-hinting-slight.conf file.
This commit is requested for browser and chromium hinting issue. Change-Id: I644f718bc3ada805f08e8041aed37a4de401c615
-rwxr-xr-xdefault-fonts-fc-sdk.init.sh2
-rw-r--r--packaging/default-fonts-fc-sdk.spec16
-rwxr-xr-xsdk_fonts_fc/10-hinting-slight.conf8
3 files changed, 18 insertions, 8 deletions
diff --git a/default-fonts-fc-sdk.init.sh b/default-fonts-fc-sdk.init.sh
index 0dc29a2..e615626 100755
--- a/default-fonts-fc-sdk.init.sh
+++ b/default-fonts-fc-sdk.init.sh
@@ -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/
diff --git a/packaging/default-fonts-fc-sdk.spec b/packaging/default-fonts-fc-sdk.spec
index 089ee67..8be2f47 100644
--- a/packaging/default-fonts-fc-sdk.spec
+++ b/packaging/default-fonts-fc-sdk.spec
@@ -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
index 0000000..2073d96
--- /dev/null
+++ b/sdk_fonts_fc/10-hinting-slight.conf
@@ -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>