Created
October 10, 2013 17:08
-
-
Save otzoran/6921969 to your computer and use it in GitHub Desktop.
Add Microsoft Fonts (Including Tahoma) on Ubuntu; tested on 12.x, 13.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install Microsoft Fonts (Including Tahoma) on Ubuntu | |
# Source: http://ubuntuforums.org/archive/index.php/t-1459709.html | |
# Ubuntu Forums > The Ubuntu Forum Community > Ubuntu Specialised Discussions > Art & Design > [SOLVED] How to Install Tahoma TTF | |
# by trentscott, April 22nd, 2010, 12:51 AM :: Simplified by me | |
prog=$(basename $0) | |
if [ $(id -u) != 0 ]; then | |
printf "Run 'sudo ./%s'\n" $prog | |
exit 0 | |
fi | |
set -o errexit | |
apt-get install msttcorefonts | |
mkdir temp-tahomafont | |
cd temp-tahomafont | |
wget http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/IELPKTH.CAB | |
cabextract IELPKTH.CAB | |
cp *.ttf /usr/share/fonts/truetype/msttcorefonts | |
if fc-cache -fv; then | |
cd .. | |
rm -r temp-tahomafont | |
echo "Microsoft fonts are now installed" | |
else | |
echo "Could not rebuild font cache" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/IELPKTH.CAB
404 Not Found