- Enables Source Sans Pro for any pub-server design.
- Serves fonts to browsers in woff and eot formats.
npm install --save pub-pkg-font-source-sans-pro
- add
pub-pkg-font-source-sans-pro
to your pub-configpkgs
- use the font-family in your CSS E.g.
body {
font-family:"Source Sans Pro";
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
This package will inject a link pointing to /css/source-sans-pro.css into your main template.
When you generate to output, the css and font files will be included under /css
and /css/fonts
.
- 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 and woff formats makes the site lighter to host, without significantly reducing browser platform coverage.
Font files are npm installed via npm-font-source-sans-pro
Source Sans Pro is a sans serif typeface created by Paul D. Hunt for Adobe Systems. It is the first open-source font family from Adobe, distributed under the SIL Open Font License.