mirror of
https://github.com/status-im/react-native.git
synced 2025-01-17 21:11:45 +00:00
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user