Skip to content

Commit

Permalink
Fix: (mentioned in #293) "Text": error messagefor non-existing font n…
Browse files Browse the repository at this point in the history
…ame instead of crash.
  • Loading branch information
pinterf committed Aug 3, 2022
1 parent 69a8c3f commit 6af1314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avs_core/core/info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ std::unique_ptr<BitmapFont> GetBitmapFont(int size, const char *name, bool bold,
// fixme: make cache
BdfFont bdf;
bdf = LoadBMF(name, bold);
if (bdf.font_info.chars == 0)
if (bdf.codepoints_array.size() == 0)
return nullptr;

current_font = new BitmapFont(
Expand Down

0 comments on commit 6af1314

Please sign in to comment.