【发布时间】:2013-05-30 22:20:25
【问题描述】:
我不确定问题出在哪里,但我刚刚使用 Font2Web 转换了一组字体,并且我已将以下代码附加到我的 css 以呈现所需的字体,就像我通常那样。
@font-face {
font-family: 'Gotham Bold';
src: url('../fonts/Gotham-Bold/fonts/Gotham-Bold.eot');
src: url('../fonts/Gotham-Bold/fonts/Gotham-Bold.eot?#iefix') format('embedded-opentype'),
url('../fonts/Gotham-Bold/fonts/Gotham-Bold.woff') format('woff'),
url('../fonts/Gotham-Bold/fonts/Gotham-Bold.ttf') format('truetype'),
url('../fonts/Gotham-Bold/fonts/Gotham-Bold.svg') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Gotham Medium';
src: url('../fonts/Gotham-Medium/fonts/Gotham-Medium.eot');
src: url('../fonts/Gotham-Medium/fonts/Gotham-Medium.eot?#iefix') format('embedded-opentype'),
url('../fonts/Gotham-Medium/fonts/Gotham-Medium.woff') format('woff'),
url('../fonts/Gotham-Medium/fonts/Gotham-Medium.ttf') format('truetype'),
url('../fonts/Gotham-Medium/fonts/Gotham-Medium.svg') format('svg');
font-weight: normal;
font-style: normal;
}
结果是我的字体在 Chrome、Safari、Firefox 上渲染得很好,但 IE8 失败并且根本不加载所需的字体。
我的猜测可能是我使用的转换器可能与 EOT 文件有问题,除非有其他问题,任何建议都会很好。谢谢。
【问题讨论】:
标签: css internet-explorer-8 webfonts