Skip to content

Commit

Permalink
HelpersImGui: allow custom size for the default font
Browse files Browse the repository at this point in the history
  • Loading branch information
corporateshark committed Jul 4, 2024
1 parent d720ac5 commit 9ef5f1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lvk/HelpersImGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9ef5f1b

Please sign in to comment.