Version 1.75 WIP

Added message to font file loading assert.
This commit is contained in:
omar
2019-11-28 20:58:16 +01:00
parent bf6d1ba3d1
commit abaf0256b8
8 changed files with 16 additions and 11 deletions

View File

@ -1,4 +1,4 @@
// dear imgui, v1.74
// dear imgui, v1.75 WIP
// (drawing and font code)
/*
@ -1673,7 +1673,7 @@ ImFont* ImFontAtlas::AddFontFromFileTTF(const char* filename, float size_pixels,
void* data = ImFileLoadToMemory(filename, "rb", &data_size, 0);
if (!data)
{
IM_ASSERT(0); // Could not load file.
IM_ASSERT_USER_ERROR(0, "Could not font load file.");
return NULL;
}
ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig();