https://github.com/bitstarr/font-mangler
Subsetting webfonts
https://github.com/bitstarr/font-mangler
Last synced: 20 days ago
JSON representation
Subsetting webfonts
- Host: GitHub
- URL: https://github.com/bitstarr/font-mangler
- Owner: bitstarr
- License: mit
- Created: 2020-03-18T08:36:56.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-03T10:06:02.000Z (about 4 years ago)
- Last Synced: 2025-04-13T09:17:01.348Z (20 days ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Webfont Mangler
Since the webfont generator of fontsquirrel is not reliable anymore, we need to subset our webfonts by our selfs. So here is this tool!
Basically it's litte convinience helper to use [glyphhanger](https://github.com/filamentgroup/glyphhanger/).
You will to install `fonttools`, `brotli` and `zopfli` via python.
```
pip install fonttools
pip install brotli
pip install zopfli
```## Usage
Put your source font filesd in the ``src`` folder. Now run
```
npm run subset
```and find the processed files in the folder ``webfonts``.
## Configuration
In ``package.json`` is a config section. There you can setup the folders and the unicode range you want to use to subset. The default subset is for typical german text and includes:
* numbers, punctuation, diacritical, €
* de, pl, cz, it, fr
* latin-1