【发布时间】:2014-01-21 08:35:36
【问题描述】:
我正在尝试使用Open Sans (Turkish version)
我很确定我应用了正确的语法。但是土耳其语字符在 IE 7,8 中看起来不同
IE 9
IE8 和 IE7
@font-face {
font-family: 'open_sansregular';
src: url('Fonts/OpenSans-Regular-webfont.eot');
src: url('Fonts/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'),
url('Fonts/OpenSans-Regular-webfont.woff') format('woff'),
url('Fonts/OpenSans-Regular-webfont.ttf') format('truetype'),
url('Fonts/OpenSans-Regular-webfont.svg#open_sansregular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'open_sanssemibold';
src: url('Fonts/OpenSans-Semibold-webfont.eot');
src: url('Fonts/OpenSans-Semibold-webfont.eot?#iefix') format('embedded-opentype'),
url('Fonts/OpenSans-Semibold-webfont.woff') format('woff'),
url('Fonts/OpenSans-Semibold-webfont.ttf') format('truetype'),
url('Fonts/OpenSans-Semibold-webfont.svg#open_sanssemibold') format('svg');
font-weight: normal;
font-style: normal;
}
编辑 这很奇怪,我上传了示例here,它运行良好。本地主机上仍然存在问题
我正在使用 VS 2013 和 IIS Express 8.0
【问题讨论】:
-
有时问题取决于浏览器如何读取字体。话虽这么说,但通常差别很小。可以肯定的是,您能展示您的字符集、示例页面等吗?
-
我在家时会添加示例页面。当我使用小字体时,它看起来真的很奇怪
-
我还建议您尝试Google Font's version of Open Sans 看看问题是否出在您的字体或浏览器如何解析它。
-
标题指的是IE 7和8,样本据说来自IE 8和IE 9,它们之间没有明显的区别。仔细观察,我可能会说小写文本的间距有所减小。很有可能您已经生成了字体文件,因此省略了土耳其字母,但无法从提供的信息中确定这一点。
-
@Publi 我试过 Google Webfonts,因为你知道我不能在 IE8 上的 font-weight 属性上使用数字,这就是我需要自定义字体的原因。
标签: css internet-explorer font-face visual-studio-2013 iis-8