We added Google web font support


Posted 3 years ago
by Russell to improvement


The LinkPeek snapshot workers now have support for Google Web Fonts!

We solved this issue by installing the fonts locally on each snapshot worker. As a way of giving back to the community, we have decided to share our font install proceedure.

How to install Google web fonts to a Linux localhost

  1. create a directory for google fonts

    mkdir -p /usr/share/fonts/truetype/google-fonts/
    
  2. install mercurial hg

    # ubuntu or debian
    sudo apt-get install -y mercurial
    
    # fedora or redhat or centos
    sudo yum install -y mercurial
    
  3. clone the hg font repo (this could take a while)

    hg clone https://googlefontdirectory.googlecode.com/hg/ googlefontdirectory;
    
  4. install fonts: find fonts, copy to the new directory, fix mode

    cd googlefontdirectory
    find . -name '*.ttf' -exec sudo cp {} /usr/share/fonts/truetype/google-fonts/ \;
    sudo chmod -R 644 /usr/share/fonts/truetype/google-fonts/
    

Now local applications like Libre Office and Gimp should have access to web fonts!

Browse the blog archives or subscribe to the full-text feed
.


Let us capture, store, and update webpage screenshots for you.

See Plans and Pricing
No Risks, Pay-as-you-go