mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:50:05 +00:00
Apply settings to font loading
This commit is contained in:
parent
81f1beb8d8
commit
ca044850fa
2 changed files with 23 additions and 8 deletions
|
|
@ -1,9 +1,13 @@
|
|||
#include <scwx/qt/manager/resource_manager.hpp>
|
||||
#include <scwx/qt/config/county_database.hpp>
|
||||
#include <scwx/qt/manager/settings_manager.hpp>
|
||||
#include <scwx/qt/model/imgui_context_model.hpp>
|
||||
#include <scwx/qt/util/font.hpp>
|
||||
#include <scwx/qt/util/texture_atlas.hpp>
|
||||
#include <scwx/util/logger.hpp>
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
|
|
@ -32,6 +36,13 @@ static void LoadFonts()
|
|||
{
|
||||
util::Font::Create(":/res/fonts/din1451alt.ttf");
|
||||
util::Font::Create(":/res/fonts/din1451alt_g.ttf");
|
||||
|
||||
if (manager::SettingsManager::general_settings()->debug_enabled())
|
||||
{
|
||||
ImFontAtlas* fontAtlas =
|
||||
model::ImGuiContextModel::Instance().font_atlas();
|
||||
fontAtlas->AddFontDefault();
|
||||
}
|
||||
}
|
||||
|
||||
static void LoadTextures()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue