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.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/unicode.c (limited to 'lib/unicode.c') diff --git a/lib/unicode.c b/lib/unicode.c new file mode 100644 index 0000000..b52431f --- /dev/null +++ b/lib/unicode.c @@ -0,0 +1,13 @@ +#include "unicode.h" +#include + +const char * +next_char(const char * c) +{ + return g_utf8_next_char(c); +} +uint32_t +get_codepoint(const char * c) +{ + return g_utf8_get_char(c); +} -- cgit v1.2.3