2024-01-28 22:14:59 +01:00
|
|
|
#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();
|
2024-01-28 22:14:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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();
|
2024-01-28 22:14:59 +01:00
|
|
|
}
|