Load the font async for now
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
#include <os/horizon-ctr.hpp>
|
||||
#include <os/horizon-nx.hpp>
|
||||
#include <palladium>
|
||||
#include <thread>
|
||||
#include <future>
|
||||
|
||||
////
|
||||
#include <pd/ultra/elems/button.hpp>
|
||||
@@ -191,7 +193,10 @@ int main(int argc, char** argv) {
|
||||
PD::Image img(ResourcePath("icon.png"));
|
||||
auto pTex = PD::Gfx::LoadTexture(img, img.Width(), img.Height());
|
||||
PD::Li::Font font;
|
||||
font.LoadTTF(ResourcePath("default.ttf"), 64);
|
||||
std::future<void> __f = std::async(std::launch::async, [&]() {
|
||||
font.LoadTTF(ResourcePath("default.ttf"), 32,
|
||||
LiFontFlags_SDF | LiFontFlags_Monospace);
|
||||
});
|
||||
pList.SetFont(&font);
|
||||
App app(font);
|
||||
Cursor LeftStick;
|
||||
|
||||
Reference in New Issue
Block a user