mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
impr: Better font loading logic
This commit is contained in:
@@ -6,11 +6,14 @@
|
||||
#include <romfs/romfs.hpp>
|
||||
|
||||
namespace hex::fonts {
|
||||
void loadFonts();
|
||||
void registerFonts();
|
||||
|
||||
bool buildFontAtlas();
|
||||
}
|
||||
|
||||
IMHEX_LIBRARY_SETUP("Fonts") {
|
||||
hex::log::debug("Using romfs: '{}'", romfs::name());
|
||||
|
||||
hex::fonts::loadFonts();
|
||||
hex::ImHexApi::System::addStartupTask("Loading fonts", true, hex::fonts::buildFontAtlas);
|
||||
hex::fonts::registerFonts();
|
||||
}
|
||||
Reference in New Issue
Block a user