LibGfx: Ignore nonexistent font directories

This commit is contained in:
easrng 2024-06-03 16:34:47 -04:00 committed by Andrew Kaster
parent f058939f1b
commit 43b8f82e94
Notes: sideshowbarker 2024-07-19 16:49:06 +09:00

View File

@ -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;
}