aboutsummaryrefslogtreecommitdiff
path: root/system/wangfonts/doinst.sh
diff options
context:
space:
mode:
authorCCHsu <a12321aabb@gmail.com>2015-08-17 22:56:44 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-08-17 23:15:13 +0700
commitc6142c053a2ead7737e0add93a149b70858e90a7 (patch)
treeeb98059a41e13c941b61f6e267e1679f32ad81b6 /system/wangfonts/doinst.sh
parent56a207d10c315eb9211ece42864600b9e060278f (diff)
system/wangfonts: Added (Free Chinese TrueType fonts).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/wangfonts/doinst.sh')
-rw-r--r--system/wangfonts/doinst.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/system/wangfonts/doinst.sh b/system/wangfonts/doinst.sh
new file mode 100644
index 0000000000000..883c47ac0a60c
--- /dev/null
+++ b/system/wangfonts/doinst.sh
@@ -0,0 +1,10 @@
+# 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