4

是否有任何免费的离线字体转换器可以将
.ttf(truetype) 格式转换为

  • .eot
  • .woff
  • .svg

想用在@font-face喜欢,

@font-face {
font-family: 'MyFontFace';
src: url('fonts/MyFont.eot');
src: local('☺'), url('fonts/MyFont.woff') format('woff'),  
    url('fonts/MyFont.ttf') format('truetype'), url('fonts/MyFont.svg')        
    format('svg');
font-weight: normal;
font-style: normal;
           }
4

1 回答 1

3

If you have fontforge you can use it convert ttf to svg and woff. ttf2eot tool can convert to eot. These two are offline tools that should satisfy your offline requirements.

But as ralph.m suggested you are better off using one of the online converters. Fontsquirrel is one. Everything Fonts has a font-face converter too.

http://everythingfonts.com/font-face

于 2014-12-05T22:52:40.723 回答