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?

hippietrail
  • 15,848
  • 18
  • 99
  • 158
ksh
  • 141
  • 1
  • 3
  • 16

2 Answers2

1

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

Community
  • 1
  • 1
eimmer
  • 1,537
  • 1
  • 10
  • 29
1

Android 4.3 didn't work with myanmar unicode. For zawgyi , you should try with SVG font for android webview. Other myanmar unicode can't work in android 4.3

saturngod
  • 24,649
  • 17
  • 62
  • 87