@@ -0,0 +1,744 @@
+package com.chobitech.android.lib.components;%0A%0Aimport android.content.Context;%0Aimport android.graphics.Typeface;%0A%0Aimport java.util.HashMap;%0A%0Afinal class TtfFontHolder %7B%0A%0A%09private final HashMap%3CString, Typeface%3E mFontMap = new HashMap%3C%3E();%0A%0A%09private TtfFontHolder()%7B%7D%0A%0A%09private static class TtfFontHolderHolder %7B%0A%09%09public static final TtfFontHolder INSTANCE = new TtfFontHolder();%0A%09%7D%0A%0A%09public static TtfFontHolder getInstance() %7B%0A%09%09return TtfFontHolderHolder.INSTANCE;%0A%09%7D%0A%0A%09public Typeface getTypeFace(Context context, String ttfName) %7B%0A%09%09if(mFontMap.containsKey(ttfName)) %7B%0A%09%09%09return mFontMap.get(ttfName);%0A%09%09%7D else %7B%0A%09%09%09Typeface tf = Typeface.createFromAsset(context.getAssets(), ttfName);%0A%09%09%09mFontMap.put(ttfName, tf);%0A%09%09%09return tf;%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create TtfFontHolder.java