lib/src/main/java/com/norbsoft/typefacehelper/TypefaceHelper.java
public static SpannableString typeface(Context context, int strResId, int style) {
		if (sDefaultTypefaceCollection == null) {
			throw new IllegalStateException("Default typeface collection not initialized. Forgot to call init()?");
		}
		return typeface(context.getString(strResId), sDefaultTypefaceCollection, style);
	}
/**
	 * Return spannable string with typeface in certain style
	 * see: http://stackoverflow.com/questions/8607707/how-to-set-a-custom-font-in-the-actionbar-title
	 *
	 * @param context to obtain string resource
	 * @param strResId string resource id, content
	 * @param style    Typeface.NORMAL, Typeface.BOLD, Typeface.ITALIC or Typeface.BOLD_ITALIC
	 *
	 * @throws IllegalStateException {@link #init(TypefaceCollection)} has not been calledC
	 * @return SpannableString that can be used in TextView.setText() method
	 */




@throws IllegalStateException  #init(TypefaceCollection) has not been calledC
@return SpannableString that can be used in TextView.setText() method
@throws IllegalStateException #init ( TypefaceCollection ) has not been calledC @return SpannableString that can be used in TextView . setText () method
public static SpannableString typeface(Context context, int strResId, int style) {
		if (sDefaultTypefaceCollection == null) {
			throw new IllegalStateException("Default typeface collection not initialized. Forgot to call init()?");
		}
		return typeface(context.getString(strResId), sDefaultTypefaceCollection, style);
	}
public static SpannableString typeface ( Context context , int strResId , int style ) { if ( sDefaultTypefaceCollection == null ) { throw new IllegalStateException ( "Default typeface collection not initialized. Forgot to call init()?" ) ; } return typeface ( context . getString ( strResId ) , sDefaultTypefaceCollection , style ) ; }
Return spannable string with typeface in certain style
 see: http://stackoverflow.com/questions/8607707/how-to-set-a-custom-font-in-the-actionbar-title
Return spannable string with typeface in certain style see : http : // stackoverflow . com / questions / 8607707 / how - to - set - a - custom - font - in - the - actionbar - title