mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 18:00:06 +00:00
Preload font resources
This commit is contained in:
parent
6ff4718ef4
commit
28ea12cbfe
7 changed files with 53 additions and 3 deletions
28
scwx-qt/source/scwx/qt/manager/resource_manager.cpp
Normal file
28
scwx-qt/source/scwx/qt/manager/resource_manager.cpp
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue