https://github.com/wlwl2/fontfacegen-core
(Mac only) From a ttf or otf, generate the required ttf, eot, woff, svg and css for the font to be used in browsers.
https://github.com/wlwl2/fontfacegen-core
fontfacegen otf ttf
Last synced: about 2 months ago
JSON representation
(Mac only) From a ttf or otf, generate the required ttf, eot, woff, svg and css for the font to be used in browsers.
- Host: GitHub
- URL: https://github.com/wlwl2/fontfacegen-core
- Owner: wlwl2
- License: mit
- Created: 2017-11-11T02:22:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-11T03:38:32.000Z (over 8 years ago)
- Last Synced: 2025-11-11T16:05:46.019Z (8 months ago)
- Topics: fontfacegen, otf, ttf
- Language: JavaScript
- Homepage:
- Size: 702 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fontfacegen-core
**This only works on OS X/macOS.**
From a ttf or otf, generate the required ttf, eot, woff, svg and css for the font to be used in browsers.
## Based on:
https://www.npmjs.com/package/fontfacegen
## Requirements:
1. OS X/macOS
2. Node.js and npm need to be installed.
## To set-up:
1. Install fontforge on OS X
`brew install fontforge`
2. Clone this repository.
3. Run `npm install` in repository root directory.
4. Add .otf or .ttf files to the `input/` folder.
5. Run `node index.js` in repository root directory.
6. Find the output in the `output/` folder.
## Todo:
Create folders for each font in the input folder see comments in `index.js` for my attempts.