code: public static Typeface getFont(Context context, String fontName) {
          synchronized (cache) {
              if (!cache.containsKey(fontName)) {
                  try {
                      Typeface t = Typeface.createFromAsset(context.getAssets(), fontName);
                      cache.put(fontName, t);
                  } catch (Exception e) {
                      return null;
                  }
              }
              return cache.get(fontName);
          }
      }
docs: Avoid reloading assets every time