diff options
author | 2024-02-10 08:26:29 +0900 | |
---|---|---|
committer | 2024-02-10 16:17:21 +0700 | |
commit | ee71b4a4ad251976c74c3b17da953d6cbe00eea8 (patch) | |
tree | ca365b7aed49e52c6728ef5ab73dc28225917f99 /system/fonts-sinhala-extra/doinst.sh | |
parent | 537beedb64e27a4fbec0460ab4b93f3eb52f5326 (diff) | |
download | slackbuilds-ee71b4a4ad251976c74c3b17da953d6cbe00eea8.tar.gz slackbuilds-ee71b4a4ad251976c74c3b17da953d6cbe00eea8.tar.xz |
system/fonts-sinhala-extra: Added (extra sinhala fonts).
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/fonts-sinhala-extra/doinst.sh')
-rw-r--r-- | system/fonts-sinhala-extra/doinst.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/system/fonts-sinhala-extra/doinst.sh b/system/fonts-sinhala-extra/doinst.sh new file mode 100644 index 0000000000..b1446e3188 --- /dev/null +++ b/system/fonts-sinhala-extra/doinst.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +# Update the X font indexes: + +if [ -x /usr/bin/mkfontdir ]; then + ( cd /usr/share/fonts/TTF + mkfontscale . + mkfontdir . + ) +fi + +if [ -x /usr/bin/mkfontdir ]; then + ( cd /usr/share/fonts/OTF + mkfontscale . + mkfontdir . + ) +fi + + +[ "$DISPLAY" != "" ] && xset fp rehash 2>/dev/null + +if [ -x /usr/bin/fc-cache ]; then + /usr/bin/fc-cache -f +fi |