Skip to content

Commit 3d145e0

Browse files
committed
Clean up font log
1 parent 87f5267 commit 3d145e0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/resources/theme.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,11 @@ void Theme::load_unifont() {
369369
font = DefaultResource::get_singleton()->get_default_font();
370370

371371
const auto new_font = Font::from_file(get_asset_dir("unifont-17.0.03.otf"));
372-
font = new_font;
373-
Logger::warn("Unifont not found", "revector");
372+
if (new_font) {
373+
font = new_font;
374+
} else {
375+
Logger::warn("Unifont not found", "revector");
376+
}
374377
}
375378

376379
} // namespace revector

0 commit comments

Comments
 (0)