Skip to content

Commit

Permalink
show a warning if loading the font file failed
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Feb 13, 2024
1 parent b12e079 commit 128ed75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 3rd_party/imgui/imgui_draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,7 @@ ImFont* ImFontAtlas::AddFontFromFileTTF(const char* filename, float size_pixels,
void* data = ImFileLoadToMemory(filename, "rb", &data_size, 0);
if (!data)
{
printf("failed to load font file: %s", filename);
IM_ASSERT(0); // Could not load file.
return NULL;
}
Expand Down

0 comments on commit 128ed75

Please sign in to comment.