On Wed, Sep 8, 2010 at 1:44 PM, nishu <[email protected]> wrote:
> i want to use Algerian font in my application.
> i have tried
>
> TextView txt = (TextView) findViewById(R.id.text1);
> Typeface font = Typeface.createFromAsset(getAssets(), "@fonts/
> ALGER.TTF");
> txt.setTypeface(font);
>
> but no use.
>
> How could i do this, i use netbeans and android sdk

Get rid of the @ sign. If your file is then in assets/fonts/ALGER.TTF
in your project, it should work.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://skillsmatter.com/go/os-mobile-server

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to