#include #include #include namespace hex::fonts { const ImHexApi::Fonts::Font& Default() { static auto font = ImHexApi::Fonts::Font("hex.fonts.font.default"); return font; } const ImHexApi::Fonts::Font& HexEditor() { static auto font = ImHexApi::Fonts::Font("hex.fonts.font.hex_editor"); return font; } const ImHexApi::Fonts::Font& CodeEditor() { static auto font = ImHexApi::Fonts::Font("hex.fonts.font.code_editor"); return font; } void registerUIFonts() { ImHexApi::Fonts::registerFont(Default()); ImHexApi::Fonts::registerFont(HexEditor()); ImHexApi::Fonts::registerFont(CodeEditor()); } void registerMergeFonts() { ImHexApi::Fonts::registerMergeFont("Blender Icons", romfs::get("fonts/blendericons.ttf").span(), { -1, -1 }); ImHexApi::Fonts::registerMergeFont("VS Codicons", romfs::get("fonts/codicons.ttf").span(), { 0, -2 }); ImHexApi::Fonts::registerMergeFont("Unifont", romfs::get("fonts/unifont.otf").span(), { 0, 0 }, 10); } }