Custom fonts in android
<p>I am trying to use custom fonts in a textview:</p>

<pre><code>tv=(TextView)findViewById(res);
Typeface font = Typeface.createFromAsset(this.getAssets(), "fonts/font.ttf"); 
tv.setTypeface(font); 
</code></pre>

<p>But when I run I get the following error:</p>

<pre><code>W/System.err(  542): java.lang.RuntimeException: native typeface cannot be made
</code></pre>

<p>Whats the issue?</p>
