8

I am not able to display Gujarati Font in WebView for Xolo, Sony Xperia, Nexus Tab device. Can anyone help me for this issue?

Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
Palak
  • 574
  • 2
  • 10
  • In html String that is return from web. I have set like this – Palak Jan 31 '14 at 09:57
  • How to load `HTML` page into `Webview`? post u r code – M D Jan 31 '14 at 10:19
  • webview.loadDataWithBaseURL("", html, mimeType, encoding, ""); – Palak Jan 31 '14 at 10:31
  • It's perfectly working in my `Nexus 4` and `Samsung Note2` but it's not working into `Micromax A89S`. So, here i think all the devices Customized `Android Platform Classes` as per their Requirement. Like Sony always `Customized Android java classes`. or there are nice SO post [here](http://stackoverflow.com/questions/3900658/how-to-change-font-face-of-webview-in-android/7395170#7395170) try this one – M D Jan 31 '14 at 10:42
  • Use `webview.loadDataWithBaseURL("file:///android_asset/", html, mimeType, encoding, null);`. Refer this [load-a-html-file-at-runtime](http://stackoverflow.com/questions/18416182/how-to-create-update-load-a-html-file-at-runtime/18417164#18417164) – Chirag Ghori Feb 26 '14 at 04:38
  • You got any solution for the same – svrushal May 07 '14 at 10:55
  • you have to add the font in to use asset folder and load the font from their – Kamal Upasena May 24 '14 at 20:19
  • @CodingISLife Can u give any Example? – Pratik Butani Aug 26 '14 at 06:59
  • @Palak Got Any Solution for that? – Pratik Butani Aug 26 '14 at 07:02
  • hello you found any solution for this. – BSKANIA Oct 09 '14 at 05:54

1 Answers1

1

Try to put all html page into a asset folder and sdcard and any webserver. Load the url simply:

webView.loadUrl("http://www.google.com/"); 

like that. In my case, all web pages are store on web server and we are choice of button to display a web page for different language.

Connorelsea
  • 2,308
  • 6
  • 26
  • 47
Adam
  • 51
  • 4