First of all you need to supply external font to your application generally it’s kruti ttf or vigyapti-hindi ttf files. put it in asset folder and then try following code.

Typeface hindiTypeFace = Typeface.createFromAsset(getAssets(), "kruti.ttf");
TextView myTextView = (TextView)findViewById(R.id.hindiTextView);
myTextView.setTypeface(hindiTypeFace);
myTextView.setText(getResources().getString(R.string.myhinditext));


it won’t be reflected on your eclipse screen you have to run in emulator to check effect. and even if in emulator if you are facing the same problem and getting square boxes instead of text make sure you are running 2.3.3 + android OS because lower than that won’t be completible with hindi fonts.

Please read http://code.google.com/p/android/issues/detail?id=1618 for details reference.

Also putting new fonts in root i.e. in platforms/android9/data/fonts folder and create new avd may work in some of the cases. but I didn’t get success though.

2 thoughts on “Resolved : Hindi Language Text showing boxes in Android Emulator”

Leave a Reply