Skip to content

Commit

Permalink
LibGfx: Ignore nonexistent font directories
Browse files Browse the repository at this point in the history
  • Loading branch information
easrng committed Jun 3, 2024
1 parent 6170ad3 commit e328438
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Userland/Libraries/LibGfx/Font/FontDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,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().code() == ENOENT) {
return;
}
dbgln("FontDatabase::load_all_fonts_from_uri('{}'): {}", uri, root_or_error.error());
return;
}
Expand Down

0 comments on commit e328438

Please sign in to comment.