how to add font in Android Application
问题 i am making one application in Android 2.2 in that application i want to show hindi text in TextView in Android application. (how to add "मैं छात्र हूँ" word in Text view) Please help me.. 回答1: Add your font to assets folder in your project and use the below snippet TextView hindiTextView=(TextView)findViewById(R.id.txtbx); Typeface hindiFont=Typeface.createFromAsset(getAssets(),"fonts/fontname.ttf"); mytextView.setTypeface(hindiFont); Hope its helpful. 回答2: 1) add "fonts" folder inside of