I want to apply some font say Times New Roman to only my application. Not to the whole system and not to specific view. As far I know
to apply font to specific view we store font file in asset folder and get into the application as follow.
1] Typeface mFace = Typeface.createFromAsset(getContext().getAssets(),
"fonts/samplefont.ttf");
textView.setTypeface(mFace);
2] To apply font to whole application I can replace the DroidSans.ttf file with my font file.
I can use first way to apply font to my application but It won't be a good solution because I need to modify everywhere and I don't want to do that if there is any better way is available.