https://github.com/danielgamage/font-weight-distributions
https://github.com/danielgamage/font-weight-distributions
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/danielgamage/font-weight-distributions
- Owner: danielgamage
- Created: 2017-02-26T19:36:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-11T17:32:42.000Z (over 9 years ago)
- Last Synced: 2024-12-31T23:28:06.232Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://danielgamage.github.io/Font-Weight-Distributions/
- Size: 2.97 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Font Weight Distributions
## Building Data
This tool uses a script (`npm run fetch`) to collect `.designspace` files hosted on GitHub and parse them for interpolation data. It fetches the result of a query and pages through the results until the end. It writes the result to a file (`fonts.js`), which is ignored by git. To run this site locally, you'll first need to run `npm run fetch` to collect this data.
If you'd like to fetch a new dataset, you must have a `config.js` file in the `scripts/` folder next to `getData.js`. It should have a structure like this:
```
module.exports = {
"token": "YOUR_TOKEN_GOES_HERE"
}
```
You must [register an application](https://github.com/blog/1509-personal-api-tokens) with github to get your own token.