Question

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.

Was it helpful?

Solution

Just clean the project it will be done.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top