https://github.com/gecko0307/gh64
CSS font generator based on glyphhanger
https://github.com/gecko0307/gh64
Last synced: 29 days ago
JSON representation
CSS font generator based on glyphhanger
- Host: GitHub
- URL: https://github.com/gecko0307/gh64
- Owner: gecko0307
- License: unlicense
- Created: 2018-09-28T08:15:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-28T08:29:32.000Z (over 6 years ago)
- Last Synced: 2025-02-01T19:12:51.400Z (3 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gh64
Minimized/stripped base64-encoded web font generator based on [glyphhanger](https://github.com/filamentgroup/glyphhanger). It was written to simplify CSS generation for embedding fonts into web pages.Installation:
```
npm install -g glyphhanger
npm link
```Usage:
* Copy `font.template.css` file and `config` folder to working directory with your font(s) and edit `config/default.json`. It may look like this:
```
{
"font1": {
"fontFamily": "Your_font_name",
"fontFile": "Your_font_name.ttf",
"whitelist": "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
},
}
```
* Run `gh64` inside working directory. You'll get `fonts.css` file that you can use on your page.