This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Typefaces{ | |
private static final Hashtable cache = new Hashtable(); | |
public static Typeface get(Context c, String name){ | |
synchronized(cache){ | |
if(!cache.containsKey(name)){ | |
Typeface t = Typeface.createFromAsset( | |
c.getAssets(), | |
String.format("fonts/%s.ttf", name) |
NewerOlder