You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ublinux-init/ublinux/rc.post.d/50-update-fonts

27 lines
568 B

#!/bin/bash
ENABLED=no
[ "$ENABLED" != "yes" ] && exit 0
DEBUGMODE=no
#. /usr/lib/ublinux/functions
#. /usr/lib/ublinux/os-config
debug_mode "$0" "$@"
#for font_dir in /usr/share/fonts{,/default}/TTF /usr/X11R6/lib/X11/fonts/TTF; do
# if [ -d "${font_dir}" ]; then
# fcneed=on
# mkfontscale ${font_dir}
# mkfontdir ${font_dir}
# fi
#done
#[ $fcneed ] && fc-cache -f -s
for font_dir in /usr/share/fonts/*; do
if [ -d "${font_dir}" ]; then
mkfontscale "${font_dir}"
mkfontdir "${font_dir}"
fi
done
fc-cache -s 2>&1 &>/dev/null