Reputation:
actually i have problem to display telugu text in android mobile. i am getting telugu text from sever through json parsing and i seeing text in in logcat like
11-06 18:25:00.807: I/System.out(668):
{
id=c200,
email=అశ్విని@అశ్విని.అశ్విని,
mobile=అశ్విని,
name=అశ్విని
}
but when every i attach to the textview using ttf file like Typeface tf1 = Typeface.createFromAsset(getBaseContext().getAssets(),"fonts/CHILLER.ttf"); it shows rectangle boxess could you please any one give me suggestion
Upvotes: 1
Views: 1201
Reputation:
I am able to display telugu text in emulator as well as mobile. Here I am using NTR.ttf font UTF16/UTF-8.
Upvotes: 1
Reputation: 1007604
You need to find a font file that:
Also, you can remove getBaseContext()
and simply use getAssets()
.
Upvotes: 1