相关疑难解决方法(0)

如何使用WebView自定义字体

现在我想显示一些unicode字符,我使用了tag : <font face=" Arial">something here</font>. 但似乎WebView找不到Arial字体,因为我只能看到UFO字符.我是否必须将arial.ttf复制到某处或者如何使用此TrueType字体WebView?谢谢.

android webview custom-font

58
推荐指数
3
解决办法
6万
查看次数

android:我想用WebViewb使用我的自定义字体

我想使用我的自定义字体与WebViewb
我的html文件加载在webView但仍然没有字体
我的字体有Unicode字符
我工作在Android 2.2

mWebView.loadUrl("file:///android_asset/P_007.html");       
Run Code Online (Sandbox Code Playgroud)

我的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>
Run Code Online (Sandbox Code Playgroud)

css fonts android android-webview android-fonts

3
推荐指数
1
解决办法
3267
查看次数