【发布时间】:2013-12-23 21:36:15
【问题描述】:
我在以下位置使用自定义字体时遇到了多个问题:
我昨天在使用 Mozilla Firefox 时遇到了一个问题,它没有显示我链接到我们的 AWS S3 存储桶的自定义字体,我通过托管我们实际 Web 服务器的字体解决了这个问题。现在,我遇到了 IE9/10 的问题,字体不再显示。我在这里找到了以下讨论:IE9 Refusing to Load custom font? 这有点触及我的问题,但是,我没有运行 Apache 或 nginx 设置,我在 IIS 上(没有实际的 IIS 访问权限)。
这是 CSS 代码:
/* GOBOLD */
@font-face {
font-family: 'Gobold';
src: url('www.shawmut.com/happyholidays/fonts/Gobold.eot');
src: url('www.shawmut.com/happyholidays/fonts/Gobold.eot#iefix') format('embedded-opentype'),
url('www.shawmut.com/happyholidays/fonts/Gobold.eot?') format('eot'),
url('www.shawmut.com/happyholidays/fonts/Gobold.woff') format('woff'),
url('www.shawmut.com/happyholidays/fonts/Gobold.ttf') format('truetype'),
url('www.shawmut.com/happyholidays/fonts/Gobold.svg#Gobold') format('svg');
font-weight: normal;
font-style: normal;
}
/* MOTION PICTURE */
@font-face {
font-family: 'MotionPicture';
src: url('www.shawmut.com/happyholidays/fonts/MotionPicture.eot');
src: url('www.shawmut.com/happyholidays/fonts/MotionPicture.eot#iefix') format('embedded-opentype'),
url('www.shawmut.com/happyholidays/fonts/MotionPicture.eot?') format('eot'),
url('www.shawmut.com/happyholidays/fonts/MotionPicture.woff') format('woff'),
url('www.shawmut.com/happyholidays/fonts/MotionPicture.ttf') format('truetype'),
url('www.shawmut.com/happyholidays/fonts/MotionPicture.svg#MotionPicture') format('svg');
font-weight: normal;
font-style: normal;
}
有人可以帮我解决这个问题吗,这让我发疯了! :)
【问题讨论】:
-
更正,这只发生在 IE10 环境中。
标签: iis internet-explorer-9 font-face internet-explorer-10 webfonts