aboutsummaryrefslogtreecommitdiff
path: root/system/wqy-microhei-font-ttf/doinst.sh
diff options
context:
space:
mode:
authorvvoody <vvoodywang@gmail.com>2012-12-28 20:36:36 -0500
committerdsomero <xgizzmo@slackbuilds.org>2012-12-29 22:25:35 -0500
commitf8a7fe5abbf02956acdfd9e9a9550b67bae60a79 (patch)
tree83d2da3f2aa1e0b43988ebe6f14fa87c14ceb679 /system/wqy-microhei-font-ttf/doinst.sh
parent55e3705248a89f4fc48360d690081acef539f69e (diff)
system/wqy-microhei-font-ttf: Added (Wen Quan Yi Micro Hei CJK Font)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/wqy-microhei-font-ttf/doinst.sh')
-rw-r--r--system/wqy-microhei-font-ttf/doinst.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/wqy-microhei-font-ttf/doinst.sh b/system/wqy-microhei-font-ttf/doinst.sh
new file mode 100644
index 0000000000000..e9c87ecd722c1
--- /dev/null
+++ b/system/wqy-microhei-font-ttf/doinst.sh
@@ -0,0 +1,11 @@
+# There's no need to chroot and do this during initial
+# install, since there is a post-install script that
+# does the same thing, saving time.
+# Update X font indexes and the font cache:
+if [ -x /usr/bin/mkfontdir ]; then
+ /usr/bin/mkfontscale /usr/share/fonts/TTF
+ /usr/bin/mkfontdir /usr/share/fonts/TTF
+fi
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache /usr/share/fonts/TTF
+fi