1

I want to set a custom font to the textView but the font should be device setting's independent. As i have used the Below Code:

 TextView tv=(TextView)findViewById(R.id.custom); 
  Typeface face=Typeface.createFromAsset(getAssets(), "fonts/HandmadeTypewriter.ttf"); 
  tv.setTypeface(face); 

but still the font is the one that is set by the on my samsung galaxy s3. I want to set a custom font that is independent to the device's font settings.

I have gone through following links and have tried the things but have not succeeded with results.

Link 1

Link 2

Please help.

Community
  • 1
  • 1
Anchit Mittal
  • 3,412
  • 4
  • 28
  • 48

1 Answers1

2

Just clean the project it will be done.

Anchit Mittal
  • 3,412
  • 4
  • 28
  • 48
Saurabh
  • 350
  • 2
  • 10
  • Thanks Saurabh, It is done, but i need to know one more thing that how to make the custom font set to textview at application level. – Anchit Mittal Dec 10 '13 at 09:01