slackbuilds_ponce/system/univga-font/doinst.sh
B. Watson 13701fa3a6 system/univga-font: Added (unicode terminal font).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2014-05-28 23:45:45 +07:00

17 lines
431 B
Bash

#!/bin/sh
# Update fonts.{dir,scale,alias}
if [ -x /usr/bin/mkfontdir -a -x /usr/bin/mkfontscale ]; then
( cd usr/share/fonts/misc
/usr/bin/mkfontscale .
/usr/bin/mkfontdir .
if ! grep -q '^univga\>' fonts.alias; then
echo 'univga -bolkhov-vga-medium-r-normal--16-160-75-75-c-80-iso10646-1' >> fonts.alias
fi
)
fi
# Update the X font indexes:
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache -f
fi