We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87f5267 commit 3d145e0Copy full SHA for 3d145e0
src/resources/theme.cpp
@@ -369,8 +369,11 @@ void Theme::load_unifont() {
369
font = DefaultResource::get_singleton()->get_default_font();
370
371
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");
+ if (new_font) {
+ font = new_font;
374
+ } else {
375
+ Logger::warn("Unifont not found", "revector");
376
+ }
377
}
378
379
} // namespace revector
0 commit comments