Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ananthakumaran/webify
webfont generator - converts ttf to woff, eot and svg
https://github.com/ananthakumaran/webify
Last synced: 3 days ago
JSON representation
webfont generator - converts ttf to woff, eot and svg
- Host: GitHub
- URL: https://github.com/ananthakumaran/webify
- Owner: ananthakumaran
- License: mit
- Created: 2013-04-07T16:42:29.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-08-01T14:38:59.000Z (over 3 years ago)
- Last Synced: 2024-11-12T19:51:19.415Z (about 1 month ago)
- Language: Haskell
- Homepage:
- Size: 112 KB
- Stars: 434
- Watchers: 19
- Forks: 23
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# Webify
A command line tool to convert ttf file to woff, eot & svg files
## Usage
$> webify fontname.ttf
For the list of available options
$> webify --help
## Installation
Latest pre-built binaries for windows, mac and linux can be downloaded
[here](https://github.com/ananthakumaran/webify/releases/latest)You can also install it via cabal
$> cabal install webify
## CSS @font-face template
````css
@font-face {
font-family: 'my-font-family';
src: url('my-font-filename.eot');
src: url('my-font-filename.eot?#iefix') format('embedded-opentype'),
url('my-font-filename.svg#my-font-family') format('svg'),
url('my-font-filename.woff') format('woff'),
url('my-font-filename.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
````## Supported conversion formats
| | [WOFF 1.0][w1] | [WOFF 2.0][w2] | [SVG][svg] | [EOT][eot] | [MTX][mtx] |
|-------|----------------------|---------------------|----------------|----------------|-----------------|
| TTF | ✔ | | ✔ | ✔ | |
| OTF | ✔ | | | ✔ | |[w1]: http://www.w3.org/TR/WOFF/
[w2]: http://www.w3.org/TR/WOFF2/
[svg]: http://www.w3.org/TR/SVG/fonts.html
[eot]: http://www.w3.org/Submission/EOT/
[mtx]: http://www.w3.org/Submission/MTX/