Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install Phantom.js on Ubuntu 10.04 and tweak for better rendering quality.
sudo apt-get update
sudo apt-get install libfreetype6 libfreetype6-dev libfontconfig
# /etc/apt/sources.list should contain these:
# deb lucid multiverse
# deb-src lucid multiverse
# deb lucid-updates multiverse
# deb-src lucid-updates multiverse
sudo echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
sudo apt-get install -y ttf-mscorefonts-installer
wget --no-check-certificate
sudo mv localfonts.conf /etc/fonts/local.conf
cd /usr/local/share/
sudo tar xjf ~/phantomjs-1.9.0-linux-x86_64.tar.bz2
sudo ln -s /usr/local/share/phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
Copy link

grantgeorge commented Jul 26, 2013

How does this increase rendering quality?

Copy link

aleemb commented Jul 31, 2013

Minor nitpick: the multiverse edits should come before the apt-get update

Copy link

ghost commented Jan 24, 2014

For anyone else looking at this here is some refferences to the font config settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment