public static Typeface getTypeface ( Context context , IconSet iconSet ) { String path = iconSet . fontPath ( ) . toString ( ) ; if ( TYPEFACE_MAP . get ( path ) == null ) { final Typeface font = Typeface . createFromAsset ( context . getAssets ( ) , path ) ; TYPEFACE_MAP . put ( path , font ) ; } return TYPEFACE_MAP . get ( path ) ; }
Returns a reference to the requested typeface creating a new instance if none already exists