1

I have set my custom font in 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;
}

And this is my HTML:

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

I only see "This sentence contain:" and nothing appears in the place of myanmar font. Is there something else that I need to add on?

4

2 回答 2

1

Android 4.3 不适用于 myanmar unicode。对于 zawgyi ,您应该尝试为 android webview 使用 SVG 字体。其他缅甸 unicode 无法在 android 4.3 中运行

于 2013-12-30T07:11:39.310 回答
1

You might have to add the font to the resources. I'm still not sure that will translate to the webview though.

于 2013-12-13T04:51:27.193 回答