impr: Added icons to all menu items on macOS

This commit is contained in:
WerWolv
2025-12-20 14:07:17 +01:00
parent 261610dcf1
commit a1711ccfa6
3 changed files with 148 additions and 14 deletions

View File

@@ -47,6 +47,10 @@
#if defined(OS_WEB)
#include <emscripten.h>
#elif defined(OS_MACOS)
extern "C" {
void macosRegisterFont(const unsigned char *data, size_t size);
}
#endif
namespace hex {
@@ -1205,6 +1209,10 @@ namespace hex {
offset,
fontSizeMultiplier
);
#if defined(OS_MACOS)
macosRegisterFont(data.data(), data.size_bytes());
#endif
}
void registerFont(const Font& font) {