Advertisement
Guest User

flibblesan

a guest
Nov 17th, 2008
644
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. #!/bin/bash
  2. # Install Microsoft Fonts (Including Tahoma)
  3.  
  4. if [ "$(id -u)" == "0" ]
  5. then
  6. if apt-get install msttcorefonts; then
  7. mkdir temp-tahomafont
  8. cd temp-tahomafont
  9. if wget http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/IELPKTH.CAB; then
  10. cabextract IELPKTH.CAB
  11. if cp *.ttf /usr/share/fonts/truetype/msttcorefonts/; then
  12. if fc-cache -fv; then
  13. cd ..
  14. rm -r temp-tahomafont
  15. echo "Microsoft fonts are now installed"
  16. else
  17. echo "Could not rebuild font cache"
  18. exit -1
  19. fi
  20. else
  21. echo "Could not copy the font to /usr/share/fonts/truetype/msttcorefonts/"
  22. exit -1
  23. fi
  24. else
  25. echo "Could not download Tahoma font"
  26. exit -1
  27. fi
  28. else
  29. echo "Could not install msttcorefonts package"
  30. exit -1
  31. fi
  32. else
  33. echo "Run 'sudo ./addfonts.sh'"
  34. exit 0
  35. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement