I am making android app in which I have to give support of Arabic text to those mobiles in which Arabic is not present.
I successfully did this in widgets(textview, button etc) by adding following 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)));
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.
Thanks