我已经在 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/