# pub-pkg-font-open-sans

> pub-server package for publishing with the Open Sans font

Latest version **2.0.0** (published 2026-02-22) · MIT AND Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install pub-pkg-font-open-sans
pnpm add pub-pkg-font-open-sans
yarn add pub-pkg-font-open-sans
bun add pub-pkg-font-open-sans
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2026-02-22 |
| First published | 2015-06-18 |
| Weekly downloads | 0 |
| License | MIT AND Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jürgen Leschner |
| Maintainers | jldec |
| Keywords | pub-server, publish, markdown, font, open-sans |

## Links

- npm: https://www.npmjs.com/package/pub-pkg-font-open-sans
- Repository: https://github.com/jldec/pub-server-monorepo
- Homepage: https://github.com/jldec/pub-server-monorepo#readme
- Issues: https://github.com/jldec/pub-server-monorepo/issues
- npm.io page: https://npm.io/package/pub-pkg-font-open-sans

## Dependencies (1)

- [open-sans-fontface](https://npm.io/package/open-sans-fontface.md) ^1.4.0

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2026-02-22
- 1.5.1 — 2020-03-07
- 1.5.0 — 2019-05-05
- 1.4.1 — 2015-11-09
- 1.4.0 — 2015-06-18

## README

## pub-pkg-font-open-sans
- Enables [Open Sans]() for any [pub-server](https://github.com/jldec/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.

```css
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](/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](https://www.npmjs.com/package/open-sans-fontface)


### Font Attribution
Steve Matteson - Apache License 2.0

---
_Source: https://npm.io/package/pub-pkg-font-open-sans · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
