mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-16 15:30:09 +00: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: 43b8f82e94
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/31
Reviewed-by: https://github.com/ADKaster
1 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,9 @@ void FontDatabase::load_all_fonts_from_uri(StringView uri)
|
||||||
{
|
{
|
||||||
auto root_or_error = Core::Resource::load_from_uri(uri);
|
auto root_or_error = Core::Resource::load_from_uri(uri);
|
||||||
if (root_or_error.is_error()) {
|
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());
|
dbgln("FontDatabase::load_all_fonts_from_uri('{}'): {}", uri, root_or_error.error());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue