Custom Font Issue In Android
<p>I am trying to use custom font in android. I have written java code as given below.</p>

<pre><code>TextView txt = (TextView) findViewById(R.id.customfont);
Typeface font = Typeface.createFromAsset(getAssets(), "fonts/Molot.otf");
txt.setTypeface(font);
</code></pre>

<p>where I have stored the custom font in "./assets/fonts/" folder.</p>

<p>But, I am getting nullpointerexception on the 3rd line.</p>

<p>Can anybody give me the solution for this issue? Thanks</p>
