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
All Methods Static Methods Concrete Methods 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
-
-
-
Method Detail
-
buildSystemFallback
@Implementation(maxSdk=30) protected static FontConfig.Alias[] buildSystemFallback(String xmlPath, String fontDir, FontCustomizationParser.Result oemCustomization, ArrayMap<String,FontFamily[]> fallbackMap, ArrayList<Font> availableFonts)
-
getSystemFallback
@Implementation(maxSdk=30) protected static FontFamily[] getSystemFallback(String familyName)
-
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
-
-