summaryrefslogtreecommitdiff
path: root/misc/font-unscii/doinst.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-03-18 07:46:44 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-03-18 07:46:54 +0700
commitaa5d912f59046e293d8d9db680d7e74ad785848f (patch)
treee31f587836e27da69db115b93a624474ad87e89e /misc/font-unscii/doinst.sh
parentefc80a8c1f6a623e8617520e8e733bdf8ddd1e9a (diff)
downloadslackbuilds-aa5d912f59046e293d8d9db680d7e74ad785848f.tar.gz
misc/font-unscii: Added (bitmapped Unicode font).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/font-unscii/doinst.sh')
-rw-r--r--misc/font-unscii/doinst.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/misc/font-unscii/doinst.sh b/misc/font-unscii/doinst.sh
new file mode 100644
index 0000000000..15acd6001a
--- /dev/null
+++ b/misc/font-unscii/doinst.sh
@@ -0,0 +1,31 @@
+# Update fonts.{dir,scale,alias}
+if [ -x /usr/bin/mkfontdir -a -x /usr/bin/mkfontscale ]; then
+ for i in misc TTF OTF; do
+ ( cd usr/share/fonts/misc
+ if ! grep -q ^unscii- fonts.alias; then
+ cat <<EOF >> fonts.alias
+unscii-16-full -unscii-unscii-medium-r-normal-full-16-160-75-75-c-80-iso10646-1
+unscii-16 -unscii-unscii-medium-r-normal-16-16-160-75-75-c-80-iso10646-1
+unscii-8-alt -unscii-unscii-medium-r-normal-alt-8-80-75-75-c-80-iso10646-1
+unscii-8-fantasy -unscii-unscii-medium-r-normal-fantasy-8-80-75-75-c-80-iso10646-1
+unscii-8-mcr -unscii-unscii-medium-r-normal-mcr-8-80-75-75-c-80-iso10646-1
+unscii-8-tall -unscii-unscii-medium-r-normal-tall-16-160-75-75-c-80-iso10646-1
+unscii-8-thin -unscii-unscii-medium-r-normal-thin-8-80-75-75-c-80-iso10646-1
+unscii-8 -unscii-unscii-medium-r-normal-8-8-80-75-75-c-80-iso10646-1
+EOF
+ fi
+ /usr/bin/mkfontscale .
+ /usr/bin/mkfontdir .
+ )
+ done
+fi
+
+# If X is running...
+if [ "$DISPLAY" != "" ] && [ -x /usr/bin/xset ]; then
+ /usr/bin/xset fp rehash >/dev/null 2>&1
+fi
+
+# Update the X font indexes:
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f
+fi