From b7e1ae4bf9bf9c0300f2298d549b56817427fea9 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 29 Nov 2015 21:33:51 +0000 Subject: [PATCH] Added comment on using PushFont() before building the font (#232) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 3c53a06da..65a1491a8 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -4274,7 +4274,7 @@ float ImGui::CalcItemWidth() static void SetCurrentFont(ImFont* font) { ImGuiState& g = *GImGui; - IM_ASSERT(font && font->IsLoaded()); + IM_ASSERT(font && font->IsLoaded()); // Font Atlas not created. Did you call io.Fonts->GetTexDataAsRGBA32 / GetTexDataAsAlpha8 ? IM_ASSERT(font->Scale > 0.0f); g.Font = font; g.FontBaseSize = g.IO.FontGlobalScale * g.Font->FontSize * g.Font->Scale;