> Call Typeface.create((String)null, Typeface.ITALIC);

yes, this works. I should have thought of this by myself >_<

> Please delete "getApplicationContext()" and just use "this"

I did this, but the problem is still here.
Also same problem if I use "(String)null" instead of
"Typeface.SANS_SERIF" (I guess sans serif was the default).

thanks for your help.

On Sep 16, 4:01 pm, Mark Murphy <[email protected]> wrote:
> On Thu, Sep 16, 2010 at 9:33 AM, Christophe
>
> <[email protected]> wrote:
> > and this is how I use the typeface :
>
> > TextView title = new TextView(this.getApplicationContext());
> > title.setText("some text");
> > title.setTypeface(Typeface.create(Typeface.SANS_SERIF,
> > Typeface.BOLD_ITALIC));
>
> Please delete "getApplicationContext()" and just use "this".
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

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