Myanmar Language in Android

user1923613 picture user1923613 · Sep 5, 2013 · Viewed 15.4k times · Source

Quick question: Can I use the Myanmar Language in an Android App? I guess the bigger question here is about unicode in general but I don't know what to ask about that.

Answer

saturngod picture saturngod · Sep 5, 2013

Start from Android 4.3 , you can use Myanmar language in the app. Myanmar unicode has no more problem. However, Android still not support Myanmar language in default.

You can use Zawgyi or Unicode correctly in Android 4.3

You can use ttf font with @Ye Lin Aung mention

tv_mm3 = (TextView) findViewById(R.id.tv_mm3);
Typeface tf_mm3 = Typeface.createFromAsset(getAssets(), "fonts/mm3.ttf");
tv_mm3.setTypeface(tf_mm3);

For web, ttf font embed can't work. You need to use svg for Zawgyi. However, unicode ttf font can't work in android 4.3. It can't render after convert svg font. So, default webview with unicode is possible now.

for WebView , you need to put zawgyi svg font under the asset folder.

@font-face {
    font-family:'Zawgyi-One';
    src:url('file:///android_asset/fonts/zawgyi.svg');
}

If you want to use unicode in webview , you can use chromeview from https://github.com/pwnall/chromeview

I hope, my answer is useful for you.

Update:: Android 4.4 support Myanmar unicode and zawgyi show well on app and webview.