dinesh707 dinesh707 - 1 year ago 60
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

Answer Source

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..

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download