0

Basically i am creating an app which have multiple languages fonts means english as well as local language(Hindi & some other) fonts. but the problem is it display only english text not the other.Text in other languages shown in rectangle box. I want to show all types of text. please suggest me.

Here is the snapshotenter image description here

Android Learner
  • 319
  • 2
  • 5
  • 19

1 Answers1

0

I got my answer. here is the link This file support all Indian language fonts and english too. Just copy paste this file in assets filder and include in the code

Typeface tf = Typeface.createFromAsset(getAssets(),
            "fonts/file_name.ttf");
    TextView tv = (TextView) findViewById(R.id.yourtextview);
    tv.setTypeface(tf);
Android Learner
  • 319
  • 2
  • 5
  • 19