Skip to content

Instantly share code, notes, and snippets.

@koyoyo
Last active June 22, 2017 09:33
Show Gist options
  • Save koyoyo/f08fc3d40744a0eac454c51889b26059 to your computer and use it in GitHub Desktop.
Save koyoyo/f08fc3d40744a0eac454c51889b26059 to your computer and use it in GitHub Desktop.
Weasyprint fonts usage
  • can use from googlefonts. (Include <link> in html page)
  • can use font-family from os installed fonts.

OSX

cp YOURFONT-regular.ttf, YOURFONT-Bold to /Library/Fonts/

Ubuntu

cp YOURFONT-regular.ttf, YOURFONT-Bold to /usr/local/share/fonts/truetype/YOURFONT/
sudo fc-cache -f -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment