summaryrefslogtreecommitdiff
path: root/source/x/noto-fonts-ttf/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/noto-fonts-ttf/doinst.sh')
-rw-r--r--source/x/noto-fonts-ttf/doinst.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/x/noto-fonts-ttf/doinst.sh b/source/x/noto-fonts-ttf/doinst.sh
new file mode 100644
index 00000000..2056d073
--- /dev/null
+++ b/source/x/noto-fonts-ttf/doinst.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+# Update the X font indexes:
+if [ -x /usr/bin/mkfontdir -o -x /usr/X11R6/bin/mkfontdir ]; then
+ mkfontscale usr/share/fonts/TTF 2> /dev/null
+ mkfontdir usr/share/fonts/TTF 2> /dev/null
+fi
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f 2> /dev/null
+fi