mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibCore: Don't search fonts in system_data_directories() on Windows
Fonts on Windows are stored only in %WINDIR%\Fonts and %LOCALAPPDATA%\Microsoft\Windows\Fonts, see https://stackoverflow.com/a/67078786 And system_data_directories() is not implemented on Windows yet.
This commit is contained in:
parent
802529bafc
commit
c580763743
Notes:
github-actions[bot]
2025-01-27 09:26:14 +00:00
Author: https://github.com/stasoid Commit: https://github.com/LadybirdBrowser/ladybird/commit/c580763743d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3001 Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ ErrorOr<Vector<String>> StandardPaths::font_directories()
|
|||
TRY(String::formatted("{}/X11/fonts"sv, user_data_directory())),
|
||||
# endif
|
||||
} };
|
||||
# if !(defined(AK_OS_SERENITY) || defined(AK_OS_MACOS))
|
||||
# if !(defined(AK_OS_SERENITY) || defined(AK_OS_MACOS) || defined(AK_OS_WINDOWS))
|
||||
auto data_directories = system_data_directories();
|
||||
for (auto& data_directory : data_directories) {
|
||||
paths.append(TRY(String::formatted("{}/fonts"sv, data_directory)));
|
||||
|
|
Loading…
Add table
Reference in a new issue