Ladybird+LibCore+Meta: Update font paths and names for Android

We also disable fontconfig, because it doesn't have support for Android.
This commit is contained in:
Alex Studer
2024-07-03 16:06:11 -04:00
committed by Andrew Kaster
parent feababea74
commit cdd91f4b48
3 changed files with 11 additions and 6 deletions

View File

@@ -206,6 +206,10 @@ ErrorOr<Vector<String>> StandardPaths::font_directories()
"/System/Library/Fonts"_string,
"/Library/Fonts"_string,
TRY(String::formatted("{}/Library/Fonts"sv, home_directory())),
# elif defined(AK_OS_ANDROID)
// FIXME: We should be using the ASystemFontIterator NDK API here.
// There is no guarantee that this will continue to exist on future versions of Android.
"/system/fonts"_string,
# else
TRY(String::formatted("{}/fonts"sv, data_directory())),
TRY(String::formatted("{}/X11/fonts"sv, data_directory())),