#include #include #include #include #include namespace hex::fonts { void loadFonts() { using namespace ImHexApi::Fonts; /** * !!IMPORTANT!! * Always load the font files in decreasing size of their glyphs. This will make the rasterize be more * efficient when packing the glyphs into the font atlas and therefor make the atlas much smaller. */ ImHexApi::Fonts::loadFont("Blender Icons", romfs::get("fonts/blendericons.ttf").span(),{ { ICON_MIN_BI, ICON_MAX_BI } }, { -1_scaled, -1_scaled }); ImHexApi::Fonts::loadFont("VS Codicons", romfs::get("fonts/codicons.ttf").span(), { { ICON_MIN_VS, ICON_MAX_VS } }, { -1_scaled, -1_scaled }); ImHexApi::Fonts::loadFont("Unifont", romfs::get("fonts/unifont.otf").span()); } }