private static Typeface getTypeface ( final String name , final Context context ) { Typeface typeface = TYPEFACES . get ( name ) ; if ( typeface == null ) { typeface = Typeface . createFromAsset ( context . getAssets ( ) , name ) ; TYPEFACES . put ( name , typeface ) ; } return typeface ; }
Get typeface with name