小编has*_*dar的帖子

在QtWebKit中显示阿拉伯字体

我用QtWebkit编写了一个程序.我在此应用程序中使用了阿拉伯字体 但是如下所示的文本不适用.是否有解决方案来修复它? 在QtWebkit中显示的文本不适用:http://www.shiaupload.ir/images/47343138299124526783.jpg 显示的文字不适用:

这里有一个示例代码

HTML代码:{

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html>
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 </head>


<style>
/*Twe Arabic font for test:*/
@font-face {
        font-family: '__me_quran';
        src: url(me_quran.ttf) format('truetype');
    }
@font-face {
        font-family: '__traditionalArabic';
        src: url(trado.ttf) format('truetype');
    }
 #para1
{
 font-family :/*__me_quran*/__traditionalArabic;
 text-align : justify;/*In this project i need justify alinement*/
 direction:rtl;
}


</style>
<script type="text/javascript" >
    var step=1;
    function plusZoom1(){
        document.getElementById("para1").style.zoom = parseFloat(step);
        step +=0.5;
    }

    function minusZoom1(){
        step -=0.5;
        document.getElementById("para1").style.zoom = parseFloat(step);
    } …
Run Code Online (Sandbox Code Playgroud)

fonts qt arabic qtwebkit text-justify

6
推荐指数
1
解决办法
1046
查看次数

标签 统计

arabic ×1

fonts ×1

qt ×1

qtwebkit ×1

text-justify ×1