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
2009-08-29 00:44:24
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.
2009-08-29 10:21:02
Oh man, that's too bad.
fiXedd
2009-08-30 03:00:07
A:
use css
@font-face {
font-family: cool_font;
src: url('cool_font.ttf');
}
raychung
2010-05-01 17:30:23