Reputation: 22493
i am new to android, please help me
in my application i want to enter text on image and i want to change the text Font dynamically how it will be do in TextView,
please give suggestions.
Upvotes: 1
Views: 4107
Reputation: 3698
Try this,
Typeface tf = Typeface.createFromAsset(getAssets(),
"fonts/Arial.otf");
TextView tv = (TextView) findViewById(R.id.CustomFontText);
tv.setTypeface(tf)
Upvotes: 3