2012-12-17 06:43:51 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2014-12-07 15:12:02 +08:00
|
|
|
if [ -x /usr/bin/fc-cache ]; then
|
|
|
|
/usr/bin/fc-cache -f
|
|
|
|
fi
|
2012-12-17 06:43:51 +08:00
|
|
|
|
2014-12-07 15:12:02 +08:00
|
|
|
# Update the X font indexes:
|
|
|
|
if [ -x /usr/bin/mkfontdir -o -x /usr/X11R6/bin/mkfontdir ]; then
|
|
|
|
( cd /usr/share/fonts/TTF
|
|
|
|
mkfontscale .
|
|
|
|
mkfontdir .
|
|
|
|
)
|
|
|
|
( cd /usr/share/fonts/Type1
|
|
|
|
mkfontscale .
|
|
|
|
mkfontdir .
|
|
|
|
)
|
2014-12-27 01:05:22 +08:00
|
|
|
fi
|