【问题标题】:Unicode @font-face text working in FF, not in Chrome and IEUnicode @font-face 文本在 FF 中工作,而不是在 Chrome 和 IE 中
【发布时间】:2011-12-17 10:11:09
【问题描述】:

我在使@font-face 使用亚洲文本工作时遇到问题,它显示的是框而不是某些字符。虽然它在 FF 中运行良好(下图),但在 IE 8 和 Chrome(上图)中却不行。该页面是 UTF-8。这里会发生什么?我不确定这是字体、我的代码还是浏览器的问题。其他一些字体可以正常工作,所以我可以更改,但如果是字体问题或缺少字形,为什么它仍然可以在 Firefox 中使用?

CSS 基本上直接来自 FontSquirrel 生成器。

@font-face {   font-family: 'fontname';src: url('/fonts/fontname-webfont.eot');  
               src: url('/fonts/fontname-webfont.eot?#iefix') format('embedded-opentype'), 
               url('/fonts/fontname-webfont.woff') format('woff'); }
.fontname {font-family: 'fontname', Arial, sans-serif; }

如有任何建议,谢谢。

【问题讨论】:

    标签: c# css internet-explorer encoding font-face


    【解决方案1】:

    看起来这只是该特定字体的编码问题。

    【讨论】:

      猜你喜欢
      • 2012-08-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-13
      • 2023-03-15
      • 1970-01-01
      • 2012-10-31
      • 2019-01-14
      相关资源
      最近更新 更多