views:

936

answers:

2

Now i want to display some unicode characters and i have used tag: something herer . But it seems that webview can not find the Arial font because i can only see UFO - Characters . Do i have to copy arial.ttf to somewhere or how can i use this true- type-font with webview? Thanks.

A: 

Android has the ability to use custom TTFs in views (though it's kind of a kludge, example on how to use custom typefaces in the API Demos), but I'm not sure how to extend this to WebView, or whether it's even possible.

That said, the Android default fonts are surprisingly complete, pretty much all commonly used characters have been implemented. I'd double-check the text encoding of the file to make sure it is encoded as UTF-8 before digging in too much further.

fiXedd
everthing works find with normal characters. But only the IPA characters for pronouciation can not be rendered correctly. I have searched in Android Developers-Group and found out that webview uses only 4 fonts of android system. When one wants to add fonts for webview, we have to hack root for the device in order to copy news fonts into system folder.
Oh man, that's too bad.
fiXedd
A: 

use css
@font-face { font-family: cool_font; src: url('cool_font.ttf'); }

raychung