webfont generator - converts ttf to woff, eot and svg
Haskell Ruby
Latest commit 969c36f Jun 13, 2017 @srhb srhb Merge pull request #20 from srhb/master
optparse-applicative >= 0.10.0.0 && < 0.15
ghc 7.6 is disabled because current hopfli versions are incompatible
travis test suites have been updated to use new-build with recent ghc versions
minor version bump (not sure this was really necessary, but the optparse dep took such a huge leap)

README.md

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

You can also install it via cabal

 $> cabal install webify

CSS @font-face template

    @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 WOFF 2.0 SVG EOT MTX
TTF
OTF