Re-add Javadoc to TypefaceCache.

Summary: Accidentally removed a Javadoc in the last commit, readding it.

Differential Revision: D2750357
This commit is contained in:
Ahmed El-Helw 2015-12-11 17:44:02 -08:00
parent 1a2cf776af
commit dfe5f9f762
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,9 @@ import com.facebook.infer.annotation.Assertions;
sAssetManager = assetManager;
}
/**
* Returns a Typeface for a given a FontFamily and style.
*/
public static Typeface getTypeface(String fontFamily, int style) {
Typeface[] cache = FONTFAMILY_CACHE.get(fontFamily);
if (cache == null) {