5

How might I use the "Comic Sans" font for Android's TextView?

Michael Petrotta
  • 59,888
  • 27
  • 145
  • 179
nirav
  • 411
  • 2
  • 8
  • 18
  • possible duplicate of [Custom Fonts in Android](http://stackoverflow.com/questions/3203694/custom-fonts-in-android) – Aleadam May 03 '11 at 04:42
  • Also this one: [How to set font custom font to Spinner text programmatically?](http://stackoverflow.com/questions/5483495/how-to-set-font-custom-font-to-spinner-text-programmatically) – Aleadam May 03 '11 at 04:43
  • @Jon http://www.geofffox.com/MT/archives/2006/06/04/death-to-comic-sans.php – Aleadam May 03 '11 at 04:51

2 Answers2

1

You should try TypeFace and one of its method Typeface.createFromAsset(). I think Only TTF type is supported. Visit this link for tutorial...

0

Use android:typeface in your xml layout file to change the font.

yogsma
  • 10,142
  • 31
  • 97
  • 154