css font-face与阿拉伯字体 [英] css font-face with the Arabic fonts

查看:278
本文介绍了css font-face与阿拉伯字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用具有不同的呈现,具体取决于平台/软件。



在你的文档中,你似乎混合truetype和opentype;)otf = OpenType Font,ttf = TrueType字体。

  @ font-face {
font-family:My;
src:url(GE_SS_TV_Bold.otf)格式(opentype);
}

如果您需要一种不同格式的字体, >

  @ font-face {
font-family:My;
src:url(GE_SS_TV_Bold.otf)format(opentype),
src:url(GE_SS_TV_Bold.ttf)format(truetype);
}


I'm trying to use an Arabic external font:

@font-face {
    font-family: "My";
    src: url(GE_SS_TV_Bold.otf) format("truetype");
}
p.customfont { 
    font-family: "My", Verdana, Tahoma;
}

It's appearing like this: but it should appear like:

解决方案

hmmm… what is the browser you are using, what is the operating system your are using. Font Faces have different rendering depending on the platform/software.

Also in your document you seem to mix truetype and opentype ;) otf = OpenType Font, ttf = TrueType font usually. What about if you rewrite like?

@font-face {
    font-family: "My";
    src: url(GE_SS_TV_Bold.otf) format("opentype");
}

if you need one font in different formats and you have the files

@font-face {
    font-family: "My";
    src: url(GE_SS_TV_Bold.otf) format("opentype"),
    src: url(GE_SS_TV_Bold.ttf) format("truetype");
}

这篇关于css font-face与阿拉伯字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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