how to change the font in textview? as default its shown up as Arial. how to change it to helvetica?
+1
A:
First, the default is not Arial. The default is Droid Sans.
Second, to change to a different built-in font, use android:typeface
in layout XML or setTypeface()
in Java.
Third, there is no Helvetica font in Android. The built-in choices are Droid Sans (sans
), Droid Sans Serif (serif
), and Droid Sans Mono (monospace
). While you can bundle your own fonts with your application and use them via setTypeface()
, bear in mind that font files are big and, in some cases, require licensing agreements (e.g., Helvetica, a Linotype font).
CommonsWare
2010-05-22 15:42:48
+1
A:
I think this is a repeat question. Look here for answer http://stackoverflow.com/questions/2878882/android-develop-lcd-font/2880348#2880348
the100rabh
2010-05-22 15:43:14
@the100rabh This should be a comment on the question itself.
Jonathan Sampson
2010-05-22 22:13:42
ooops, thanks for letting me know this :-)
the100rabh
2010-05-23 05:52:47