title: How to use Custom font in eclipse?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3651086/android-using-custom-font">Android - Using Custom Font</a>  </p>
  </blockquote>
  
  
  
  <p>i am creating an application in arabic
  and have a custom font that i want to use
  can someone tell me the code i should use in my java class
  i tried this </p>
  
  <pre><code>TextView txt = (TextView) findViewById(R.id.custom_font);  
  Typeface font = Typeface.createFromAsset(getAssets(), "trado.ttf");  
  txt.setTypeface(font); 
  </code></pre>
  
  <p>but the ending line that says font theres an error that says
  Syntax error on token "font", VariableDeclaratorId expected after this token
  Can someone help!</p>