summaryrefslogtreecommitdiff
path: root/system/adobe-source-han-sans-fonts/doinst.sh
diff options
context:
space:
mode:
authorCCHsu <a12321aabb@gmail.com>2014-09-13 08:00:09 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-09-13 08:00:09 +0700
commitdc33bb9293f99dc9f0df8b586837b4290820efb4 (patch)
tree23c75bbb68d6bff875b9777e3ac73c78f868465a /system/adobe-source-han-sans-fonts/doinst.sh
parenteb0a12b1c5f6e37f8ee104ad086472c3972f99a9 (diff)
downloadslackbuilds-dc33bb9293f99dc9f0df8b586837b4290820efb4.tar.gz
system/adobe-source-han-sans-fonts: Added (OpenType Pan-CJK Font).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/adobe-source-han-sans-fonts/doinst.sh')
-rw-r--r--system/adobe-source-han-sans-fonts/doinst.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/adobe-source-han-sans-fonts/doinst.sh b/system/adobe-source-han-sans-fonts/doinst.sh
new file mode 100644
index 0000000000..8fec9f5340
--- /dev/null
+++ b/system/adobe-source-han-sans-fonts/doinst.sh
@@ -0,0 +1,11 @@
+# Update the X font indexes:
+if [ -x /usr/bin/mkfontdir ]; then
+ ( cd /usr/share/fonts/TTF
+ mkfontscale .
+ mkfontdir .
+ )
+fi
+
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f
+fi