// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package uk.co.chrisjenx.calligraphy; import android.content.res.AssetManager; import android.graphics.Typeface; import android.util.Log; import java.util.HashMap; import java.util.Map; // Referenced classes of package uk.co.chrisjenx.calligraphy: // CalligraphyTypefaceSpan public final class TypefaceUtils { private static final Map sCachedFonts = new HashMap(); private static final Map sCachedSpans = new HashMap(); private TypefaceUtils() { } public static CalligraphyTypefaceSpan getSpan(Typeface typeface) { if (typeface == null) { return null; } CalligraphyTypefaceSpan calligraphytypefacespan; synchronized (sCachedSpans) { if (sCachedSpans.containsKey(typeface)) { break MISSING_BLOCK_LABEL_53; } calligraphytypefacespan = new CalligraphyTypefaceSpan(typeface); sCachedSpans.put(typeface, calligraphytypefacespan); } return calligraphytypefacespan; typeface; map; JVM INSTR monitorexit ; throw typeface; typeface = (CalligraphyTypefaceSpan)sCachedSpans.get(typeface); map; JVM INSTR monitorexit ; return typeface; } public static boolean isLoaded(Typeface typeface) { return typeface != null && sCachedFonts.containsValue(typeface); } public static Typeface load(AssetManager assetmanager, String s) { map; JVM INSTR monitorenter ; synchronized (sCachedFonts) { if (sCachedFonts.containsKey(s)) { break MISSING_BLOCK_LABEL_86; } assetmanager = Typeface.createFromAsset(assetmanager, s); sCachedFonts.put(s, assetmanager); } return assetmanager; assetmanager; Log.w("Calligraphy", (new StringBuilder()).append("Can't create asset from ").append(s).append(". Make sure you have passed in the correct path and file name.").toString(), assetmanager); sCachedFonts.put(s, null); map; JVM INSTR monitorexit ; return null; assetmanager = (Typeface)sCachedFonts.get(s); map; JVM INSTR monitorexit ; return assetmanager; assetmanager; map; JVM INSTR monitorexit ; throw assetmanager; } }