歇阿拉伯语字体 [英] Break Arabic Font

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

问题描述

我在做Android应用程序中,我不得不放弃支持阿拉伯文字的那些手机在阿拉伯语是不是present。

I am making android app in which I have to give support of Arabic text to those mobiles in which Arabic is not present.

我成功地加入以下code这样做的小部件(TextView中,按钮等)。

I successfully did this in widgets(textview, button etc) by adding following code.

我ahve在入资产价值增加文件夹 dejavusans.ttf 文件。
在code我加了

I ahve added dejavusans.ttf file in assests folder. and in code I added

    TypeFace typeFace = Typeface.createFromAsset(context.getAssets(), "dejavusans.ttf"); 
fieldName.setTypeface(typeFace);   
fieldName.setText(ArabicUtilities.reshape(resources.getString(R.string.bring_financial_arabic)));

但问题是web视图。 web视图的文本打破。我看到了不同的解决方案,包括如何在Android的改变网页视图中字型?。但是,没有人是工作的罚款。
这里是快照。
标题(TextView中)正在罚款,但该网页的文本是打破。

But the problem is with WebView. The text of webView is breaking. I saw different solutions including How to change font face of Webview in Android?. But no one is working fine. Here is the snapshot. The title(TextView) is looking fine but the webpage text is breaking.

如果有人知道它的答案,请您帮助。

If anyone know its answer then please help.

感谢

推荐答案

我发现这个问题的解决。

I found a solution of this problem.

我用下面的工具 http://www.arabic-keyboard.org/photoshop-阿拉伯语/

我贴我在里面阿拉伯语和复制的结果,那么我粘贴结果在我的HTML文件。其结果是这样的。

I pasted my arabic in it and copy the result then I pasted the result in my html file. The result is like this.

虽然不是100%准确,但它比previous之一。

Although it is not 100 percent accurate but it is much better than previous one.

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

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