Saturday, April 27, 2013

[android help] How to set textview in malayalam font(An Indian local language) in android 2.2

text - How to set textview in malayalam font(An Indian local language) in android 2.2 - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.


















I need to show TextView in malayalam font which is an indian local language. For this I am trying below code



Typeface custom_typerface = Typeface.createFromAsset(getAssets(), "fonts/AnjaliNewLipi.ttf");
TextView mytext = (TextView)findViewById(R.id.mytext);
mytext.setTypeface(custom_typerface);
mytext.setText("മലയാള ഭാഷ തന്‍ ഭാവ ശുദ്ധി...");


This shows correctly on a 4.2 device, but not in all devices. How can I render it for all android devices? Any help will appreciated.


















This question has an open bounty worth +300 reputation from COD3BOY ending in 7 days.


The question is widely applicable to a large audience. A detailed canonical answer is required to address all the concerns.


This should work on all Android versions / devices.






Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.










default






.

stackoverflow.comm

No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...