diff options
author | Vijay Marcel <vijaymarcel@outlook.com> | 2024-01-30 08:20:32 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-01-30 08:40:49 +0700 |
commit | 18f5969d3cba1eb9c7831fa344aed451ebd0f6a2 (patch) | |
tree | 95f68001dd6f8b45dae73539ca974d4d378ac542 /system/fonts-nastaliq/doinst.sh | |
parent | 4c478e8db76425ef4cebae9c1f4e60463e78926e (diff) |
system/fonts-nastaliq: Added (system fonts).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/fonts-nastaliq/doinst.sh')
-rw-r--r-- | system/fonts-nastaliq/doinst.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/system/fonts-nastaliq/doinst.sh b/system/fonts-nastaliq/doinst.sh new file mode 100644 index 000000000000..b1446e31882d --- /dev/null +++ b/system/fonts-nastaliq/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 |