[client] overlay: add ImGui support for non-latin characters

This commit is contained in:
Geoffrey McRae
2026-07-30 12:39:47 +10:00
parent f3155647d2
commit 4f02eda913
9 changed files with 374 additions and 21 deletions

View File

@@ -26,6 +26,9 @@
#include "common/types.h"
#include "common/util.h"
struct ImFont;
struct ImFontAtlas;
// reads the specified file into a new buffer
// the callee must free the buffer
bool util_fileGetContents(const char * filename, char ** buffer, size_t * length);
@@ -46,5 +49,8 @@ static inline double util_clamp(double x, double min, double max)
bool util_initUIFonts(void);
void util_freeUIFonts(void);
char * util_getUIFont(const char * fontName);
bool util_uiFontAddText(const char * text);
bool util_buildUIFontAtlas(
struct ImFontAtlas * atlas, float size, struct ImFont ** large);
#endif