Preload font resources

This commit is contained in:
Dan Paulat 2021-10-23 09:03:54 -05:00
parent 6ff4718ef4
commit 28ea12cbfe
7 changed files with 53 additions and 3 deletions

View file

@ -0,0 +1,28 @@
#include <scwx/qt/manager/resource_manager.hpp>
#include <scwx/qt/util/font.hpp>
namespace scwx
{
namespace qt
{
namespace manager
{
namespace ResourceManager
{
static void LoadFonts();
void PreLoad()
{
LoadFonts();
}
static void LoadFonts()
{
util::Font::Create(":/res/fonts/din1451alt.ttf");
util::Font::Create(":/res/fonts/din1451alt_g.ttf");
}
} // namespace ResourceManager
} // namespace manager
} // namespace qt
} // namespace scwx