使用扩展名为 .otf 的阿拉伯字体 [英] Using Arabic fonts with the extension .otf

查看:28
本文介绍了使用扩展名为 .otf 的阿拉伯字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个小项目,客户寄给我一个他希望我用于阿拉伯语的字体.该文件的文件扩展名为 .otf

I'm working on a small project, where the client sent me a font that he wants me to use for the Arabic language. The file extension for the file is .otf

我嵌入了文件,并尝试使用它,结果是:

I embedded the file, and tried to use it, and the results were:

  • IE8:无法识别字体.
  • Chrome:无法识别字体.
  • Firefox:已识别字体,但查看时字母被分开(在阿拉伯语中,单词的字母是相互连接的)

知道如何在 Firefox 上修复它并使 IE 和 Chrome 识别字体类型吗??

Any idea on how to fix it on Firefox and make IE and Chrome recognize the font type ??

这是使用的代码:

CSS

@font-face {
font-family: Dinar;
src: url("GEDinarTwo-Light.otf") format("opentype");
}

@font-face {
font-family: Dinar;
font-weight: bold;
src: url("GEDinarTwo-Light.otf") format("opentype");
}

#ss {
font-family: Dinar, Arial, Helvetica, Sans-Serif;
}

非常感谢...

推荐答案

目前使用@font-face 技术嵌入阿拉伯字体似乎不起作用,我一直在尝试即时交付阿拉伯字体,但是一直无法让它显示在网页上.我在某处读到的原因是@font-face 不支持访问字体的扩展字符库.

It seems that Arabic font embedding using the @font-face technique does not work at present, I have been trying to have an arabic font deliver on the fly but haven't been able to get it display on web page. Reason, I read somewhere, is that the @font-face does not support accessing the extended character base of fonts.

这篇关于使用扩展名为 .otf 的阿拉伯字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆