Package org.robolectric.shadows
Class ShadowSystemFonts
java.lang.Object
org.robolectric.shadows.ShadowSystemFonts
@Implements(className="android.graphics.fonts.SystemFonts", minSdk=29, isInAndroidSdk=false) public class ShadowSystemFonts extends Object
-
Constructor Summary
Constructors Constructor Description ShadowSystemFonts()
-
Method Summary
Modifier and Type Method Description protected static FontConfig.Alias[]
buildSystemFallback(String xmlPath, String fontDir, FontCustomizationParser.Result oemCustomization, ArrayMap<String,FontFamily[]> fallbackMap, ArrayList<Font> availableFonts)
protected static FontFamily[]
getSystemFallback(String familyName)
protected static FontConfig
getSystemFontConfigInternal(String fontsXml, String systemFontDir, String oemXml, String productFontDir, Map<String,File> updatableFontMap, long lastModifiedDate, int configVersion)
Overrides to prevent the Log.e Failed to open/read system font configurations
-
Constructor Details
-
ShadowSystemFonts
public ShadowSystemFonts()
-
-
Method Details
-
buildSystemFallback
@Implementation(maxSdk=30) protected static FontConfig.Alias[] buildSystemFallback(String xmlPath, String fontDir, FontCustomizationParser.Result oemCustomization, ArrayMap<String,FontFamily[]> fallbackMap, ArrayList<Font> availableFonts) -
getSystemFallback
-
getSystemFontConfigInternal
@Implementation(minSdk=31) protected static FontConfig getSystemFontConfigInternal(String fontsXml, String systemFontDir, String oemXml, String productFontDir, Map<String,File> updatableFontMap, long lastModifiedDate, int configVersion)Overrides to prevent the Log.e Failed to open/read system font configurations
-