Code example for TypefaceSpan

0
	 */ 
	public static SpannableString buildCondensedFontString(String string) {
		if (string == null)
			return null; 
		SpannableString s = new SpannableString(string);
		s.setSpan(new TypefaceSpan("sans-serif-condensed"), 0, s.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
		return s;
	} 
 
}