css - Safari 不显示字体正确,但其他人却显示,为什么?

标签 css font-face truetype safari

我的网站有以下 CSS

@font-face {
 font-family: 'malayalam';
 src: url("../fonts/mal/kartika.eot"); /* EOT file for IE */
 src: url('../fonts/mal/kartika.eot?#iefix') format('embedded-opentype');
 src:  local('malayalam'), 
    url("../fonts/mal/kartika.ttf")   format('truetype') 
    url("../fonts/mal/kartika.woff") format("woff"),
    url('../fonts/mal/kartika.svg#Kartika') format('svg');
}

它适用于 IE、FireFox (Waterfox) 和 Chrome,但不适用于 Safari (Win7)
以上字体kartika是windows自带的unicode字体

问题是字符“ർ”(如上所述在所有浏览器中显示良好)在 Safari (Win7) 中显示为“ര്”

我可以知道为什么吗?有什么解决办法吗?

最佳答案

可能是您没有为这些浏览器打开 unicode 设置,或者文本对齐方式可能是原因:

Solution for the blogger: This issue happens when the text is formatted with align="justify" or letter-spacing:..em;. Either remove justfy or change that to something else like left/right/center.

https://sites.google.com/site/cibu/unicode-how-to

关于css - Safari 不显示字体正确,但其他人却显示,为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18419024/

相关文章:

javascript - 使用带有 CSS 模块的 ReactJS 对 SVG 元素进行样式化

javascript - jQuery,如何传递 rgb 值来更改 css 背景?

html - css水平对齐+垂直对齐div中的3个元素

css - Safari 和 IE 无法读取 TTF 和 EOT 字体

c# - 如何处理 FormattedText/让 WPF 放弃 .TTF 文件?

c - 在 x11 中添加非常大的字体

html - margin : Auto wont work in HTML/CSS

css - 转换网页字体格式是一个 "lossy"程序吗?

html - 未加载字体

css - 为什么我的@Font-Faces 无法加载?