Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.23 KB

File metadata and controls

41 lines (30 loc) · 1.23 KB

Webify

A command line tool to convert ttf file to woff, woff2, eot & svg files

Usage

$> webify fontname.ttf

For the list of available options

$> webify --help

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.woff2') format('woff2'),
        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