1
0
mirror of synced 2024-12-15 17:21:16 +01:00
ImHex/plugins/fonts/source/library_fonts.cpp

19 lines
427 B
C++
Raw Normal View History

#include <hex/plugin.hpp>
#include <hex/api/content_registry.hpp>
#include <hex/helpers/logger.hpp>
#include <romfs/romfs.hpp>
namespace hex::fonts {
2024-06-16 22:41:16 +02:00
void registerFonts();
bool buildFontAtlas();
}
IMHEX_LIBRARY_SETUP("Fonts") {
hex::log::debug("Using romfs: '{}'", romfs::name());
2024-06-16 22:41:16 +02:00
hex::ImHexApi::System::addStartupTask("Loading fonts", true, hex::fonts::buildFontAtlas);
hex::fonts::registerFonts();
}