Skip to content

Instantly share code, notes, and snippets.

@otzoran
Created October 10, 2013 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save otzoran/6921969 to your computer and use it in GitHub Desktop.
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
#!/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