KyleAMathews / typography.js

A powerful toolkit for building websites with beautiful design
http://kyleamathews.github.io/typography.js/
MIT License
3.84k stars 182 forks source link

Support for font files included in local project #182

Closed aschrijver closed 6 years ago

aschrijver commented 6 years ago

I would like to create a site where Privacy Badger say "No trackers, Hurray for privacy" and thus I don't want to load them from Google. Still want to use the themes though.

Would be great if there was a way to specify a local directory location, and load the Google (or other) fonts from there. This in a React project, so probably needs changes in packages/react-typography/src/GoogleFont.js

I found these issues to be related: https://github.com/KyleAMathews/typography.js/issues/79 and https://github.com/KyleAMathews/typography.js/issues/77#issuecomment-252101446

Not sure if this is alrready supported somehow.

aschrijver commented 6 years ago

I found your ( @KyleAMathews ) excellent typefaces project, and a way to override remote font loading (https://github.com/KyleAMathews/typography.js/issues/147 )