Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save julianxhokaxhiu/b835599f06e0c69a3b94 to your computer and use it in GitHub Desktop.
Save julianxhokaxhiu/b835599f06e0c69a3b94 to your computer and use it in GitHub Desktop.
# Install ttfautohint on Ubuntu 14.04 LTS
# @author: Jean Lescure
# 2015/08/17
# Clone ttfautohint git repo to 'tmp' dir and cd into resulting repo folder
cd /tmp
git clone http://repo.or.cz/ttfautohint.git
cd ttfautohint
# Required for compilation
sudo apt-get install -y automake libtool bison flex pkg-config gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev
# Run bootstrap
./bootstrap
# Handle ttfautohint's configure dependency: harfbuzz
wget http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.0.1.tar.bz2
tar -xjf harfbuzz-1.0.1.tar.bz2
cd harfbuzz-1.0.1
./configure
make
sudo make install
cd ..
# Configure and install ttfautohint
./configure --with-qt=no --with-doc=no
make
sudo make install
# Remove ttfautohint temp folder
cd ..
rm -rfv ttfautohint/
# Done
echo "ttfautohint auto-install script has been run! :)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment