gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 13:04:45 25 4
gpt4 key购买 nike

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com