Issue
i want use my custom font with WebViewb
my html file loaded in webView but still without font
my font has Unicode characters
i work on android 2.2
mWebView.loadUrl("file:///android_asset/P_007.html");
my css:
<STYLE type="text/css">
@font-face {
font-family: AQF_P007_HA;
src: url("AQF_P007_HA.TTF");
}
body {
font-family: AQF_P007_HA;
font-style:normal;
font-weight: normal;
color: black;
font-size: medium;
mso-font-charset: 0
}
</STYLE>
Solution
A solution is document here: How to use custom font with WebView
is this similar to what you tried to use in your html file? With the url relative to your assets folder in this case?
@font-face {
font-family: 'AQF_P001_HA';
src: url('AQF_P001_HA.TTF');
}
body {font-family: 'AQF_P001_HA';}
Answered By - blad
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.