KyleAMathews / typefaces

NPM packages for Open Source typefaces
2.6k stars 91 forks source link

Documentation for local development #42

Open thibautRe opened 6 years ago

thibautRe commented 6 years ago

Hello!

Great library!

I am currently writing some utility to take screenshots of every font in typefaces automatically and locally, hopefully fixing #4 (I will open a PR when I will be done with it). I am blocked by some undocumented feature: how do you generate/download the font files? I see that they are not in the git repo but they are in the npm packages.

I tried to run some scripts of the scripts folder but without success.

KyleAMathews commented 6 years ago

For google fonts see https://github.com/KyleAMathews/typefaces/blob/master/how-to-update.md

For non-google fonts, it's probably from fontsquirrel so you run node scripts/package-from-fontsquirrel.js ID_OF_FONT