setup.05.fontconfig 669 B

1234567891011121314151617
  1. #!/bin/sh
  2. #BLURB="Run fc-cache to locate new fonts for Xft"
  3. if [ -x usr/X11R7/bin/fc-cache ]; then
  4. if [ "$COLOR" = "on" -o -r $TMP/SeTcolor ]; then
  5. dialog --title "FONTCONFIG UPDATE" --infobox \
  6. "Please wait while we generate font.cache-1 files with fc-cache. \
  7. For best results, fc-cache should be run whenever fonts are \
  8. added to the system." 5 68
  9. else
  10. echo "Please wait while we generate font.cache-1 files with fc-cache."
  11. echo "For best results, fc-cache should be run whenever fonts are added"
  12. echo "to the system."
  13. fi
  14. chroot . /sbin/ldconfig 1> /dev/null 2> /dev/null
  15. chroot . /usr/X11R7/bin/fc-cache -f 1> /dev/null 2> /dev/null
  16. fi