summaryrefslogtreecommitdiffstats
path: root/system/fira-code-fonts/doinst.sh
diff options
context:
space:
mode:
author Azure Zanculmarktum <zanculmarktum@gmail.com>2018-11-08 10:58:04 +0000
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2018-11-10 07:46:58 +0700
commit7aa94410990b77926ebc61aa9a5ec111a17b7c0a (patch)
tree14af8f62e91665629c8875cc097b0a4ab1cd7197 /system/fira-code-fonts/doinst.sh
parent67049367c2a4fceb72cf73331b51aa6081fafb76 (diff)
downloadslackbuilds-7aa94410990b77926ebc61aa9a5ec111a17b7c0a.tar.gz
slackbuilds-7aa94410990b77926ebc61aa9a5ec111a17b7c0a.tar.xz
system/fira-code-fonts: Added (monospaced font with ligatures).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/fira-code-fonts/doinst.sh')
-rw-r--r--system/fira-code-fonts/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/fira-code-fonts/doinst.sh b/system/fira-code-fonts/doinst.sh
new file mode 100644
index 0000000000..c011595ed8
--- /dev/null
+++ b/system/fira-code-fonts/doinst.sh
@@ -0,0 +1,14 @@
+# Update the X font indexes:
+if [ -x /usr/bin/mkfontdir -o -x /usr/X11R6/bin/mkfontdir ]; then
+ ( cd /usr/share/fonts/TTF
+ mkfontscale .
+ mkfontdir .
+ )
+ ( cd /usr/share/fonts/OTF
+ mkfontscale .
+ mkfontdir .
+ )
+fi
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f
+fi