TextView tv=(TextView)findViewById(R.id.textView1); Typeface face=Typeface.createFromAsset(getAssets(), "font.ttf"); tv.setTypeface(face);
I do not see changes in the text font. I have a file "font.ttf" in the resource folder. Basically, I intend to show the word “urdu” in this text (requirement) and therefore add the Urdu font to the assets. However, he shows me the "WORD" in English.
Thanks for the help.
source share