Possible Duplicate:
malayalam font in android?
I want to display Malayalam text in my app, is it possible? I have tried using typeface from gont file of malayalam language. But it doesn't work. Is there any other way to do it. Please give me some suggestions,
Thanks in advance.
Get your required Malayalam font into your assets
folder of your application. And, follow the below steps -
TextView
with Typeface
like below codeTypeface typeFace = Typeface.createFromAsset(getAssets(),"malyalam.fnt");
textView.setTypeFace(typeFace);
Get your malayalam fonts here -
Malayalam Fonts and Fonts for Malayalam
Hope this helps you.
Update
I just tested below code with one malayalam font. Its working fine. Try with that -
TextView t = (TextView)findViewById(R.id.textView1);
t.setText("മലയാളം");
Typeface typeFace = Typeface.createFromAsset(getAssets(),"AnjaliOldLipi.ttf");
t.setTypeface(typeFace);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With