【问题标题】:Getting Agenda Font to work in IE9 with @font-face kit... font-squirrel says the font bureau has disallowed it使用@font-face 工具包让议程字体在 IE9 中工作... font-squirrel 说字体局已禁止它
【发布时间】:2012-11-21 11:22:13
【问题描述】:

好的,所以我正在尝试让 IE9 显示字体议程。我像往常一样去了fontsquirrel,它说字体局不允许他们创建字体工具包。然后我去了codeandmore并在那里制作了套件,但他们没有给你专家选项来制作字体的精简版。在 IE 9 中,我收到错误 CSS3111 和 CSS3114:

CSS3111: @font-face encountered unknown error. 
agenda-light.eot?#iefix
CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable. 
agenda-light.ttf

我尝试了多种解决方法,例如使字体专门针对 woff,但不起作用。

@font-face {
        font-family: 'IE9Agenda-Light';
        src: url('agenda-light.woff') format('woff');
        font-weight: normal;
        font-style: normal;
}

我添加了一个具有以下语法的 .htaccess 文件:

AddType font/ttf .ttf
AddType font/eot .eot
AddType font/otf .otf
AddType font/woff .woff

我想我需要在这里放置某种配置文件,但不确定要使用什么:我的客户也购买了字体,所以我没有非法字体。这是我的代码:

@font-face {
        font-family: 'Agenda-Bold';
        src: url('agenda-bold.eot?') format('embedded-opentype'),
                 url('agenda-bold.woff') format('woff'),
                 url('agenda-bold.ttf') format('truetype'),
                 url('agenda-bold.svg#agenda-bold') format('svg');
        font-weight: normal;
        font-style: normal;
}

@font-face {
        font-family: 'Agenda-Light';
        src: url('agenda-light.eot');
        src: url('agenda-light.eot?#iefix') format('embedded-opentype'),
                 url('agenda-light.woff') format('woff'),
                 url('agenda-light.ttf') format('truetype'),
                 url('agenda-light.svg#agenda-light') format('svg');
        font-weight: normal;
        font-style: normal;
}

这适用于除 IE9 之外的所有浏览器,如果有人有替代字体松鼠字体的字体生成器,它将把 eot 文件打包为 lite 版本而不是 eot.compressed 版本,这将很有帮助,这似乎是只能解决我还没有找到的方法。

【问题讨论】:

    标签: css fonts internet-explorer-9 font-face


    【解决方案1】:

    根据http://www.fontbureau.com/webfonts/,似乎 Agenda 字体仅可作为托管服务用于 Web 字体,这意味着您应该使用提供的代码来引用该服务,而不是生成自己的字体文件。

    如果字体是根据普通(非网络字体)许可购买的,则不允许将其用作网络字体。见http://www.webtype.com/info/articles/fonts-and-the-law/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-04-08
      • 1970-01-01
      • 2011-04-17
      • 2013-02-26
      • 2012-09-21
      • 2012-11-18
      • 1970-01-01
      相关资源
      最近更新 更多