diff options
| author | 2023-08-14 09:58:39 +0000 | |
|---|---|---|
| committer | 2023-08-14 09:58:39 +0000 | |
| commit | 81808d8d02c93ea44eb5ccc21d3871368d194ee6 (patch) | |
| tree | 5d7db1246ce27f776c3d79f053f88febacfa3bc2 /graphics/java | |
| parent | 906aa2446436050f0ee999cbf1fc9d590b738570 (diff) | |
| parent | f6aa44a3c4d421b30e12118a576dc30b77458ea5 (diff) | |
Merge "Deprecate fonts.xml and add hidden font_fallback.xml" into main am: a6fac5d6c7 am: 38d368a926 am: f6aa44a3c4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2670877
Change-Id: I59afcdc8de07fbeec1e9007b6fccd24dab2de834
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'graphics/java')
| -rw-r--r-- | graphics/java/android/graphics/fonts/SystemFonts.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/fonts/SystemFonts.java b/graphics/java/android/graphics/fonts/SystemFonts.java index 8fe28ae731b8..acc4da6e1527 100644 --- a/graphics/java/android/graphics/fonts/SystemFonts.java +++ b/graphics/java/android/graphics/fonts/SystemFonts.java @@ -47,7 +47,7 @@ import java.util.Set; public final class SystemFonts { private static final String TAG = "SystemFonts"; - private static final String FONTS_XML = "/system/etc/fonts.xml"; + private static final String FONTS_XML = "/system/etc/font_fallback.xml"; /** @hide */ public static final String SYSTEM_FONT_DIR = "/system/fonts/"; private static final String OEM_XML = "/product/etc/fonts_customization.xml"; @@ -220,6 +220,19 @@ public final class SystemFonts { } /** + * Get the updated FontConfig for testing purposes. + * @hide + */ + public static @NonNull FontConfig getSystemFontConfigForTesting( + @NonNull String fontsXmlPath, + @Nullable Map<String, File> updatableFontMap, + long lastModifiedDate, + int configVersion) { + return getSystemFontConfigInternal(fontsXmlPath, SYSTEM_FONT_DIR, OEM_XML, OEM_FONT_DIR, + updatableFontMap, lastModifiedDate, configVersion); + } + + /** * Get the updated FontConfig. * * @param updatableFontMap a font mapping of updated font files. |