neue
A minimal web font loader
Async loading of linked fonts with @font-face
.
Installation
Install with npm:
$ npm install neue
Downloads
Usage
Load font families using FVD-style declarations:
neue
Where the CSS file looks like this:
Utilities
parse
neue // { family: 'Source Sans Pro', variations: ['n2'] }
stringify
neue // ['source-sans-pro-n2']
Example
Run the example server at http://127.0.0.1:3000:
$ npm run example-server
Tests
Run the test server at http://127.0.0.1:8000:
$ grunt test:dev
Builds
Create standalone dist/neue.js
and dist/neue.min.js
builds:
$ grunt dist
License
MIT License, see LICENSE for details.