diff --git a/lvk/HelpersImGui.cpp b/lvk/HelpersImGui.cpp index a360f766007..f3de2758e78 100644 --- a/lvk/HelpersImGui.cpp +++ b/lvk/HelpersImGui.cpp @@ -132,6 +132,8 @@ void ImGuiRenderer::updateFont(const char* defaultFontTTF, float fontSizePixels) ImFont* font = nullptr; if (defaultFontTTF) { font = io.Fonts->AddFontFromFileTTF(defaultFontTTF, cfg.SizePixels, &cfg); + } else { + font = io.Fonts->AddFontDefault(&cfg); } io.Fonts->Flags |= ImFontAtlasFlags_NoPowerOfTwoHeight;