离线字体转换器用于@font-face

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

3
请访问http://www.fontlab.com/,他们提供丰富的下载工具。 - Rachel Gallen
为什么局限于使用离线转换工具?FontSquirrel 有一个很棒的在线转换工具。 - ralph.m
1个回答

5
如果你拥有fontforge,可以使用它将ttf转换为svg和woff。而ttf2eot工具可以将ttf转换为eot。这两个是离线工具,可以满足你的离线需求。
但正如ralph.m所建议的,最好使用其中一个在线转换器。Fontsquirrel是其中之一。Everything Fonts也有字体转换器。 http://everythingfonts.com/font-face

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接