public Typeface GetFont(Context context, FontyTypo font) { lock (fontCache) { if (fontCache.ContainsKey(font)) { return(fontCache [font]); } Typeface typeface; if (configuration.SourceTypo == FontySourceTypo.assets) { typeface = AssetsLoader.Get(context, configuration, font); } else { typeface = Typeface.Default; } fontCache.Add(font, typeface); return(typeface); } }