This project is now archived, in favor of Fontsource.
Use Noto Sans web fonts with a single CSS import!
- Node.js
- a CSS bundler (or JS bundler that can also bundle CSS)
npm i notosans
or
yarn add notosans
Import the CSS file from the package to include the @font-face
declarations and .woff2
files in your bundle:
@import url("notosans/noto.css");
body {
font-family: "Noto Sans", sans-serif; /* it's always a good idea to specify a generic fallback */
}
This npm package is built from an automated process that downloads and converts Google's Noto Sans font from TTF to WOFF2.
To run it yourself, clone this repo and then run:
docker-compose up