mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
LibGfx: Ignore nonexistent font directories
This commit is contained in:
parent
f058939f1b
commit
43b8f82e94
Notes:
sideshowbarker
2024-07-19 16:49:06 +09:00
Author: https://github.com/easrng Commit: https://github.com/LadybirdBrowser/ladybird/commit/43b8f82e94b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/31 Reviewed-by: https://github.com/ADKaster
@ -31,6 +31,9 @@ void FontDatabase::load_all_fonts_from_uri(StringView uri)
|
||||
{
|
||||
auto root_or_error = Core::Resource::load_from_uri(uri);
|
||||
if (root_or_error.is_error()) {
|
||||
if (root_or_error.error().is_errno() && root_or_error.error().code() == ENOENT) {
|
||||
return;
|
||||
}
|
||||
dbgln("FontDatabase::load_all_fonts_from_uri('{}'): {}", uri, root_or_error.error());
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user