pub-pkg-font-open-sans

1.5.1 • Public • Published

pub-pkg-font-open-sans

  • Enables Open Sans for any pub-server design.
  • Serves fonts to browsers in woff, woff2, and eot formats.

Installation

  1. npm install --save pub-pkg-font-open-sans
  2. add pub-pkg-font-open-sans to your pub-config pkgs
  3. use the font-family in your CSS E.g.
body {
  font-family:"Open Sans";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

CSS

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 /css and /css/fonts.

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.

npm dependencies

Font files are npm installed via open-sans-fontface

Font Attribution

Steve Matteson - Apache License 2.0

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.5.1
    9
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.5.1
    9
  • 1.5.0
    0
  • 1.4.1
    0
  • 1.4.0
    0

Package Sidebar

Install

npm i pub-pkg-font-open-sans

Weekly Downloads

9

Version

1.5.1

License

MIT AND Apache-2.0

Unpacked Size

7.09 kB

Total Files

5

Last publish

Collaborators

  • jldec