Re-add Javadoc to TypefaceCache.
Summary: Accidentally removed a Javadoc in the last commit, readding it. Differential Revision: D2750357
This commit is contained in:
parent
1a2cf776af
commit
dfe5f9f762
|
@ -43,6 +43,9 @@ import com.facebook.infer.annotation.Assertions;
|
||||||
sAssetManager = assetManager;
|
sAssetManager = assetManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a Typeface for a given a FontFamily and style.
|
||||||
|
*/
|
||||||
public static Typeface getTypeface(String fontFamily, int style) {
|
public static Typeface getTypeface(String fontFamily, int style) {
|
||||||
Typeface[] cache = FONTFAMILY_CACHE.get(fontFamily);
|
Typeface[] cache = FONTFAMILY_CACHE.get(fontFamily);
|
||||||
if (cache == null) {
|
if (cache == null) {
|
||||||
|
|
Loading…
Reference in New Issue