openfonts

NPM packages for all graduated Google Fonts typefaces including non-english subsets.

MIT License

Downloads
4.1K
Stars
44
Committers
12

What

This is fork of awesome project typefaces, allowing to use different character subsets.

Each typeface package ships with all the necessary font files and css to self-host an open source typeface.

All Google Fonts have been added as well.

How

Couldnt be easier. This is how youd add Open Sans.

npm install --save @openfonts/open-sans_latin

Then in your app or sites entry file.

require("@openfonts/open-sans_latin")

And thats it! Youre now self-hosting Open Sans!

It should take < 5 minutes to swap out Google Fonts.

Typeface assumes youre using webpack with loaders setup for loading css and font files (you can use Typeface with other setups but webpack makes things really really simple). Assuming your webpack configuration is setup correctly you then just need to require the typeface in the entry file for your project.