I am able to display telugu text in emulator as well as mobile. Here I am using NTR.ttf font UTF16/UTF-8.
is it possiable to display telugu text in android mobile
-
27-11-2021 - |
Question
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
La solution 2
Autres conseils
You need to find a font file that:
- Has the Telugu glyphs, and
- Is either free for you to embed in an app (or is one that you have licensed to embed in an app)
Also, you can remove getBaseContext()
and simply use getAssets()
.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow