使用带有阿拉伯字体的@font-face CSS 样式? [英] Using @font-face CSS stylewith an Arabic font?
问题描述
我正在编写以下 CSS 代码来使用阿拉伯字体创建字体样式,并且我使用的是 Windows 操作系统...
I am writing the following CSS code to create font face style using an Arabic font, and i am using windows OS...
浏览器不识字的问题,我在chrome、firefox、explorer、opera上测试...四个浏览器都认不出字体...
the problem that browsers doesn't read it, i am testing on chrome, firefox, explorer and opera... the four browsers doesn't recognize the font...
这是我的 CSS 代码...
here is my CSS code...
@media screen, print { @font-face {
font-family: 'FUFONT';
src: url(../fonts/ScheherazadeRegAAT.ttf) format("truetype-aat"), url(../fonts/ScheherazadeRegOT.ttf) format("opentype");
font-weight:bold; } }
并按如下方式调用它...
and call it as follow...
.navigation ul li a {font-family: FUFONT, Arial, Helvetica, sans-serif; font-size:18px;}
您认为问题是什么?
推荐答案
简短的回答:到目前为止,还没有阿拉伯字体生成器,因此我们可以在 Web 中使用它.
The short answer: till now there is no generator for arabic fonts so we can use it in web.
进一步说明:当使用http://www.fontsquirrel.com/fontface/generator与专家:
Farther explanation: when using http://www.fontsquirrel.com/fontface/generator with Expert:
子集:无子集.
CSS 格式:笑脸
您将能够在网页中看到您的阿拉伯字体,但有一个问题:没有字母整形,这意味着一个单词的字母不会连接在一起,因为到目前为止还没有生成器支持所需的 OpenType 功能阿拉伯语.
you'll be able to see your Arabic font in the web pages with one problem: no letter reshaping which means that the letters of one word will not be joint together, because there's no generator till now support the required OpenType functionality for Arabic language.
这篇关于使用带有阿拉伯字体的@font-face CSS 样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!