aboutsummaryrefslogtreecommitdiff
path: root/system/ttf-sakalbharati/doinst.sh
diff options
context:
space:
mode:
authorVijay Marcel <vijaymarcel@outlook.com>2024-04-19 21:52:53 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-04-19 22:21:01 +0700
commit9baa4ece206bf1f30a8b84f08a22061929656659 (patch)
treed48ca290329495d881a6cf72cc90827a9b115346 /system/ttf-sakalbharati/doinst.sh
parent80bde231a9f66bf079ff90b58788b050da0c1c21 (diff)
system/ttf-sakalbharati: Added (ttf fonts).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ttf-sakalbharati/doinst.sh')
-rw-r--r--system/ttf-sakalbharati/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/system/ttf-sakalbharati/doinst.sh b/system/ttf-sakalbharati/doinst.sh
new file mode 100644
index 0000000000000..bfdd4606970e1
--- /dev/null
+++ b/system/ttf-sakalbharati/doinst.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# Update the X font indexes:
+
+if [ -x /usr/bin/mkfontdir ]; then
+ ( cd /usr/share/fonts/TTF
+ mkfontscale .
+ mkfontdir .
+ )
+fi
+
+[ "$DISPLAY" != "" ] && xset fp rehash 2>/dev/null
+
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f
+fi