From 1f68fe78e84f25c8ddacdc37a293a5de31725bab Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 1 Jan 2022 13:01:08 +0000 Subject: First iteration with font/text support --- lib/unicode.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lib/unicode.h (limited to 'lib/unicode.h') diff --git a/lib/unicode.h b/lib/unicode.h new file mode 100644 index 0000000..8bd841b --- /dev/null +++ b/lib/unicode.h @@ -0,0 +1,20 @@ +#ifndef UNICODE_H +#define UNICODE_H + +// Wrappers of some glib functions (why are we using glib then?) which we want, but glib.h is a bit C like + +#ifdef __cplusplus +# include +extern "C" { +#else +# include +#endif + +const char * next_char(const char *); +uint32_t get_codepoint(const char *); + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3