4

I want to know is it possible to make a webview to load foreign language/font web site. Let's say i want to load a URL which contains non-standard unicode font (they have their own font. I can download the font and use it.)

Right now, I know we can do this if both "html" and "font" file are located in the same folder under "Asset". Yes, this display the character correctly. I refer from this link >> How to change font face of Webview in Android?

However, if I navigate to real web site URL from my asset folder html file, it will not render the font correctly.

Is there any way to achieve it? By injecting some html tags or totally can't achieve it????

I also try google but all I get is above example with local HTML file with font. Any suggestions or reference links are appreciated.

Thanks.

Community
  • 1
  • 1
scsfdev
  • 345
  • 1
  • 5
  • 14
  • you can zoomIn and zoomOut for increasing font – Tofeeq Ahmad Jan 11 '12 at 04:26
  • Sorry TofeeqAhmad, may be I used the wrong words. The text is not display correctly like my local HTML file. – scsfdev Jan 11 '12 at 05:36
  • if you are using custom HTML file in webview.Then make sure that you are using tag that support by android Webview.Otherwise it will not show original effect.Like android does not all html tag – Tofeeq Ahmad Jan 11 '12 at 05:44
  • Found an answer here: http://stackoverflow.com/questions/19267006/custom-font-for-webview-android – Phantômaxx Apr 04 '14 at 08:23

0 Answers0