mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
0fb858bd22
Also, replaced TTF with OTF in default formats list (TTF is no longer default, but still can be included in the package by adding this format to the FONTFORMATS environment variable when running the script). Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
10 lines
309 B
Bash
10 lines
309 B
Bash
# Update the X font indexes:
|
|
if [ -x /usr/bin/mkfontdir ]; then
|
|
( cd /usr/share/fonts/misc ; mkfontscale . ; mkfontdir . )
|
|
( cd /usr/share/fonts/OTF ; mkfontscale . ; mkfontdir . )
|
|
( cd /usr/share/fonts/TTF ; mkfontscale . ; mkfontdir . )
|
|
fi
|
|
|
|
if [ -x /usr/bin/fc-cache ]; then
|
|
/usr/bin/fc-cache -f
|
|
fi
|