doinst.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. # Update fonts.{dir,scale,alias}
  2. if [ -x /usr/bin/mkfontdir -a -x /usr/bin/mkfontscale ]; then
  3. for i in misc TTF OTF; do
  4. ( cd usr/share/fonts/misc
  5. if ! grep -q ^unscii- fonts.alias; then
  6. cat <<EOF >> fonts.alias
  7. unscii-16-full -unscii-unscii-medium-r-normal-full-16-160-75-75-c-80-iso10646-1
  8. unscii-16 -unscii-unscii-medium-r-normal-16-16-160-75-75-c-80-iso10646-1
  9. unscii-8-alt -unscii-unscii-medium-r-normal-alt-8-80-75-75-c-80-iso10646-1
  10. unscii-8-fantasy -unscii-unscii-medium-r-normal-fantasy-8-80-75-75-c-80-iso10646-1
  11. unscii-8-mcr -unscii-unscii-medium-r-normal-mcr-8-80-75-75-c-80-iso10646-1
  12. unscii-8-tall -unscii-unscii-medium-r-normal-tall-16-160-75-75-c-80-iso10646-1
  13. unscii-8-thin -unscii-unscii-medium-r-normal-thin-8-80-75-75-c-80-iso10646-1
  14. unscii-8 -unscii-unscii-medium-r-normal-8-8-80-75-75-c-80-iso10646-1
  15. EOF
  16. fi
  17. /usr/bin/mkfontscale .
  18. /usr/bin/mkfontdir .
  19. )
  20. done
  21. fi
  22. # If X is running...
  23. if [ "$DISPLAY" != "" ] && [ -x /usr/bin/xset ]; then
  24. /usr/bin/xset fp rehash >/dev/null 2>&1
  25. fi
  26. # Update the X font indexes:
  27. if [ -x /usr/bin/fc-cache ]; then
  28. /usr/bin/fc-cache -f
  29. fi