1
0
mirror of synced 2024-12-21 03:55:56 +01:00
ImHex/plugins/fonts/source/library_fonts.cpp
2024-06-16 22:41:16 +02:00

19 lines
427 B
C++

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