public static Typeface getTypeface(Context ctx, String fontName){
        Typeface existing = mLoadedTypefaces.get(fontName);
        if(existing == null){
            existing = Typeface.createFromAsset(ctx.getAssets(), fontName);
            mLoadedTypefaces.put(fontName, existing);
        }
        return existing;
    }
public static Typeface getTypeface ( Context ctx , String fontName ) { Typeface existing = mLoadedTypefaces . get ( fontName ) ; if ( existing == null ) { existing = Typeface . createFromAsset ( ctx . getAssets ( ) , fontName ) ; mLoadedTypefaces . put ( fontName , existing ) ; } return existing ; }
Get a typeface for a given the font name/path

@param ctx           the context to load the typeface from assets
@param fontName      the name/path of of the typeface to load
@return              the loaded typeface, or null