android - 如何在android webview中加载缅甸字体?

标签 android css android-webview font-face southeast-asian-languages

我已经在 css 中设置了我的自定义字体:

@font-face 
{
   font-family: 'myanmar';
   src: url('file:///android_asset/fonts/ZawgyiOne.ttf'); 
}
.mm
{
    display: inline;
    font-family: 'myanmar';
    font-size: 18pt;
    font-weight: 500;
    font-style:normal;
    color: red;
}

这是我的 HTML:

<span class='mm'>This sentence contain:  ျမန္မာ ၾကိဳဆိုပါ၏</span>

我只看到“This sentence contain:”,而没有出现在缅甸字体的地方。还有什么我需要补充的吗?

最佳答案

您可能需要 add the font到资源。不过,我仍然不确定这是否会转化为 WebView 。

关于android - 如何在android webview中加载缅甸字体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20559308/

相关文章:

android - 在 Android Volley 中取消 NetworkImageView 请求

AndroidAnnotations 和 EventBus

android - 与本地 android 和 html5 共享数据库(sqlite 错误没有这样的表)

android - IBM Worklight - 在集成服务器生成的页面应用程序中将选项卡栏放在标题下方

java - 如何检索内部存储器中的每个文件?

android - 自动完成 TextView 建议列表在键盘后面

jquery - 粘性 header : sub menu doesn't show up

html - 使用 chrome,我的网站运行良好。使用 IE 鼠标悬停不起作用

jquery - Twitter Bootstrap 3 导航菜单意外行为

android - 无法完全摆脱 Android 4.1.2 上 Phonegap 3.0 应用程序中的点击突出显示颜色