I am trying to establish a new custom font (otf file) for my web view.
I put anbaaarabic_bold.otf in assets file.
There is how i do:
String h
To get URI for a file placed in /assets
folder, you will need to use:
file:///android_asset/file_name
Try the following code:
String head = "";
String htmlData= ""+head+""+body+"" ;
mBodyArticle.loadDataWithBaseURL("http://nada", htmlData,
"text/html", "utf-8", "");
Make sure that you use the exact file name (case-sensitive).