Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.
/ NotoSans Public archive

NPM package for WOFF2 formatted Noto Sans fonts

License

Notifications You must be signed in to change notification settings

ecoAPM/NotoSans

Repository files navigation

This project is now archived, in favor of Fontsource.

Noto Sans Web Fonts

Use Noto Sans web fonts with a single CSS import!

npm version CI status

Maintainability Rating Reliability Rating Security Rating

Requirements

  • Node.js
  • a CSS bundler (or JS bundler that can also bundle CSS)

Installation

npm i notosans

or

yarn add notosans

Usage

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 */
}

Build from source

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