- Enables Open Sans for any pub-server design.
- Serves fonts to browsers in woff, woff2, and eot formats.
npm install --save pub-pkg-font-open-sans
pub-pkg-font-open-sansto your pub-config
- use the font-family in your CSS E.g.
This package will inject a link pointing to /css/open-sans.css into your main template.
When you generate to output, the css and font files will be included under
Why distribute fonts with your website?
- to work offline
- to reduce the number of 3rd parties visitors to your site will need to trust.
The drawback is that the fonts are less likely to be in readers' cache, and will consume bandwidth.
Including only eot, woff and woff2 formats makes the site lighter to host, without significantly reducing browser platform coverage.
Font files are npm installed via open-sans-fontface
Steve Matteson - Apache License 2.0