Cak*_*hes 5 font-face internet-explorer-9
我使用Fontsquirrel @fontface Generator为我正在使用的三种字体创建CSS.字体在每个浏览器中都能正常显示,包括其他版本的IE - 但IE 9没有显示字体.
这是CSS:
@font-face {
font-family: "OswaldBold";
src: url("../fonts/oswald-bold-webfont.eot");
src: url("../fonts/oswald-bold-webfont.eot?#iefix") format("embedded-opentype"),
url("../fonts/oswald-bold-webfont.woff") format("woff"),
url("../fonts/oswald-bold-webfont.ttf") format("truetype"),
url("../fonts/oswald-bold-webfont.svg#OswaldBold") format("svg");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "OswaldRegular";
src: url("../fonts/oswald-regular-webfont.eot");
src: url("../fonts/oswald-regular-webfont.eot?#iefix") format("embedded-opentype"),
url("../fonts/oswald-regular-webfont.woff") format("woff"),
url("../fonts/oswald-regular-webfont.ttf") format("truetype"),
url("../fonts/oswald-regular-webfont.svg#OswaldRegular") format("svg");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "OswaldLight";
src: url("../fonts/oswald-light-webfont.eot");
src: url("../fonts/oswald-light-webfont.eot?#iefix") format("embedded-opentype"),
url("../fonts/oswald-light-webfont.woff") format("woff"),
url("../fonts/oswald-light-webfont.ttf") format("truetype"),
url("../fonts/oswald-light-webfont.svg#OswaldLight") format("svg");
font-weight: normal;
font-style: normal;
}
Run Code Online (Sandbox Code Playgroud)
...以下是我在IE开发人员控制台中遇到的错误:
CSS3111:@ font-face遇到未知错误.
奥斯瓦尔德-光webfont.eot?#iefixCSS3111:@ font-face遇到未知错误.
奥斯瓦尔德-粗体webfont.eot?#iefixCSS3111:@ font-face遇到未知错误.
奥斯瓦德-光webfont.woffCSS3111:@ font-face遇到未知错误.
奥斯瓦尔德-粗体webfont.woffCSS3114:@ font-face失败OpenType嵌入权限检查.权限必须是可安装的.
奥斯瓦德-光webfont.ttfCSS3114:@ font-face失败OpenType嵌入权限检查.权限必须是可安装的.
奥斯瓦尔德-粗体webfont.ttf
我对我所做的搜索没有任何运气,任何见解都会非常感激.先感谢您.
Cak*_*hes 14
我通过使用Font Squirrel生成器再次生成字体文件来解决问题 .
我选择了'专家'控制选项并从'EOT Compressed'改为'EOT Lite'
字体现在可以在每个浏览器中使用.

| 归档时间: |
|
| 查看次数: |
12786 次 |
| 最近记录: |