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

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

问题描述

我正在开发一个小型项目,客户向我发送了一个他希望我用于阿拉伯语的字体。该文件的文件扩展名为.otf



我嵌入了该文件,并试图使用它,结果如下:




  • IE8:无法识别字体。

  • Chrome:无法识别字体。 li> Firefox:识别字体,但在查看字体时,字母是分开的(用阿拉伯语字母表示字母相互连接)。


    关于如何在Firefox上修复它并让IE和Chrome识别字体类型的任何想法

    以下是使用的代码:



    CSS

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

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

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

    非常感谢...

    解决方案

    似乎使用@ font-face技术的阿拉伯字体嵌入目前不起作用,我一直试图让阿拉伯字体在飞行中交付,但没有能够将其显示在网页上。我在某处读到的理由是,@ font-face不支持访问扩展的字体基础。


    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: Didn't recognize the font.
    • Chrome: Didn't recognize the font.
    • Firefox: Recognized the font, but when viewing it the letters were separated (in Arabic language the letters of the word is connected to each other)

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

    Here is the code is used:

    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;
    }
    

    Many thanks ...

    解决方案

    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天全站免登陆