dinesh707 dinesh707 - 2 months ago 9x
Android Question

Where should I put the "ttf" files in an Android project?

I'm trying to use fonts in my project using Typeface. I copied the

into a folder named "fonts" inside "assets" folder. But eclipse do not allow to compile it. It shows an error on fonts folder. What should I do?

The error I get is:

invalid resource directory name fonts /NoRats/assets line 1 Android AAPT Problem


Please check this link my be helpful to you


used Below Code.

Typeface tf = Typeface.createFromAsset(this.getAssets(),

ttf file is in --> assets/fonts/LATINWD.TTF

Please first Clean your project then check again.

Happy Coding..