Webify convertir fuente ttf a woff, eot y svg

Webify convertir fuente ttf a woff, eot y svg

Convertir fuente ttf a woff, eot y svg:

Instalar Webify:

https://github.com/ananthakumaran/webify

 

Binario:

https://ebustos.com/download/webify-linux-x86_64

 

Uso:

webify fontname.ttf

 

CSS @font-face código

@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;
}