summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2016-11-08 05:55:16 (GMT)
committerYoungbok Shin <youngb.shin@samsung.com>2016-11-08 05:58:07 (GMT)
commit347120509eb9e542497e87be50ca2ddd1f944265 (patch)
tree8c13993b0e99efbf349f4e1824c17d04f4e19ad8
parent5830deea17818b8b888a058916756ac540366b85 (diff)
downloaddefault-fonts-fc-sdk-tizen.zip
default-fonts-fc-sdk-tizen.tar.gz
default-fonts-fc-sdk-tizen.tar.bz2
Add aliases for serif, sans-serif and etcHEADtizen_5.5.m2_releasetizen_4.0.m2_releasetizen_4.0.m1_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_unified/20170308.100407submit/tizen_5.5/20191031.000003submit/tizen_5.0/20181101.000003submit/tizen_4.0/20170828.110004submit/tizen_4.0/20170828.100004submit/tizen_4.0/20170811.094300submit/tizen_3.0/20161115.035306submit/tizen_3.0/20161114.035101submit/tizen_3.0.m2/20170104.093750submit/tizen/20170103.012719submit/tizen/20170102.091821accepted/tizen/wearable/20170103.051241accepted/tizen/unified/20170309.032934accepted/tizen/tv/20170103.051155accepted/tizen/mobile/20170103.051117accepted/tizen/ivi/20170103.051323accepted/tizen/common/20170102.152413accepted/tizen/5.5/unified/20191031.023858accepted/tizen/5.0/unified/20181102.015508accepted/tizen/4.0/unified/20170829.015825accepted/tizen/4.0/unified/20170816.011308accepted/tizen/3.0/wearable/20161116.022322accepted/tizen/3.0/tv/20161116.022319accepted/tizen/3.0/mobile/20161116.022312accepted/tizen/3.0/ivi/20161116.022327accepted/tizen/3.0/common/20161116.143722accepted/tizen/3.0.m2/wearable/20170104.125818accepted/tizen/3.0.m2/tv/20170104.125558accepted/tizen/3.0.m2/mobile/20170104.125300tizen_5.5tizen_5.0tizen_4.0tizen_3.0_tvtizen_3.0.m2tizenaccepted/tizen_wearableaccepted/tizen_unifiedaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_commonaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unifiedaccepted/tizen_4.0_unifiedaccepted/tizen_3.0.m2_wearableaccepted/tizen_3.0.m2_tvaccepted/tizen_3.0.m2_mobilerefs/changes/79/96179/1
It allows to load Tizen system font list even if the given font is not available. Change-Id: Icfa2fe00f642a6a9c91453a1e7e2a4d11ef1bf09
-rw-r--r--packaging/default-fonts-fc-sdk.spec2
-rw-r--r--sdk_fonts_fc/98-tizen-alias.conf41
2 files changed, 43 insertions, 0 deletions
diff --git a/packaging/default-fonts-fc-sdk.spec b/packaging/default-fonts-fc-sdk.spec
index 3a4f71d..b6d6f21 100644
--- a/packaging/default-fonts-fc-sdk.spec
+++ b/packaging/default-fonts-fc-sdk.spec
@@ -21,12 +21,14 @@ cp %{SOURCE1001} .
%install
export FONT_CONF_FILE_1="99-tizen.conf"
+export FONT_CONF_FILE_2="98-tizen-alias.conf"
## TZ_SYS_RO_ETC: /etc, TZ_SYS_ETC: /opt/etc/
rm -rf %{buildroot}
mkdir -p %{buildroot}%{TZ_SYS_RO_ETC}/fonts/conf.d/
mkdir -p %{buildroot}%{TZ_SYS_ETC}/fonts/conf.avail/ && cp -a sdk_fonts_fc/* %{buildroot}%{TZ_SYS_ETC}/fonts/conf.avail/
ln -s %{TZ_SYS_ETC}/fonts/conf.avail/$FONT_CONF_FILE_1 %{buildroot}%{TZ_SYS_RO_ETC}/fonts/conf.d/$FONT_CONF_FILE_1
+ln -s %{TZ_SYS_ETC}/fonts/conf.avail/$FONT_CONF_FILE_2 %{buildroot}%{TZ_SYS_RO_ETC}/fonts/conf.d/$FONT_CONF_FILE_2
%post
chown root:users %{TZ_SYS_ETC}/fonts/conf.avail/*.conf
diff --git a/sdk_fonts_fc/98-tizen-alias.conf b/sdk_fonts_fc/98-tizen-alias.conf
new file mode 100644
index 0000000..2c90e81
--- /dev/null
+++ b/sdk_fonts_fc/98-tizen-alias.conf
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>Tizen</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Tizen</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>monospace</family>
+ <prefer>
+ <family>Tizen</family>
+ </prefer>
+ </alias>
+<!--
+ Fantasy faces
+ -->
+ <alias>
+ <family>fantasy</family>
+ <prefer>
+ <family>Tizen</family>
+ </prefer>
+ </alias>
+<!--
+ Cursive faces
+ -->
+ <alias>
+ <family>cursive</family>
+ <prefer>
+ <family>Tizen</family>
+ </prefer>
+ </alias>
+
+</fontconfig>