Skip to content

Commit

Permalink
fix: Default font not being the default font
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Jan 19, 2025
1 parent 41c8be2 commit 758738d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main/gui/source/window/window.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "window.hpp"
#include "hex/ui/banner.hpp"

#include <hex.hpp>

Expand All @@ -18,6 +17,7 @@

#include <hex/ui/view.hpp>
#include <hex/ui/popup.hpp>
#include <hex/ui/banner.hpp>

#include <chrono>
#include <csignal>
Expand Down Expand Up @@ -309,8 +309,7 @@ namespace hex {
ImGui_ImplOpenGL3_CreateFontsTexture();
}

// Make the first font in the list the default UI font
currentFont = fontDefinitions.begin()->second->ContainerAtlas;
currentFont = ImHexApi::Fonts::getFont("hex.fonts.font.default")->ContainerAtlas;
}

// Start new ImGui Frame
Expand Down

0 comments on commit 758738d

Please sign in to comment.