public synchronized Typeface get(String name) {
		Typeface typeface = mCache.get(name);
		if(typeface == null) {
			try {
				typeface = Typeface.createFromAsset(mApplication.getAssets(), name);
			} catch (Exception exp) {
				return null;
			}
			mCache.put(name, typeface);
		}
		return typeface;
	}
public synchronized Typeface get ( String name ) { Typeface typeface = mCache . get ( name ) ; if ( typeface == null ) { try { typeface = Typeface . createFromAsset ( mApplication . getAssets ( ) , name ) ; } catch ( Exception exp ) { return null ; } mCache . put ( name , typeface ) ; } return typeface ; }
If the cache has an instance for the typeface name, this will return the instance immediately.
Otherwise this method will create typeface instance and put it into the cache and return the instance.
@param name the typeface name.
@return {@link android.graphics.Typeface} instance.