![]() If you want your users to type in Khmer, they'll need to have a Khmer keyboard installed (such as Khmer Standard Keyboard).īy doing this, you should be able to have an app that can display Khmer and take Khmer input. Typeface tf = Typeface.createFromAsset(getAssets(), "KhmerOS.ttf") You then need to set the typeface of any views to that font, including TextViews and EditTexts: TextView textView = (TextView) findViewById(R.id.textView1) ĮditText editText = (EditText) findViewById(R.id.editText1) You'll need to provide the font to the app by placing it in the assets folder. You need to show the text using a font family that has Khmer characters (like KhmerOS). ![]() These fonts do not have Khmer characters, so if you try to display a Khmer character, the text will look blank or broken. I'm trying this using Android 4.1.2 and I'm able to have Khmer font show up fine for input and display.īy default, Android uses the Droid font family (Droid Sans, Droid Sans Mono, and Droid Serif).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |