From 2b265ea0eb5825eccd3b9b072b5014bacf0d16d7 Mon Sep 17 00:00:00 2001 From: Oxore Date: Wed, 11 Jul 2018 07:04:47 +0300 Subject: Migrate displayable text to utf32 --- include/text.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/text.h b/include/text.h index c1de778..8a939c2 100644 --- a/include/text.h +++ b/include/text.h @@ -4,12 +4,14 @@ typedef struct text { char *type; char *scene; char *font; - char *text; + wchar_t *text; unsigned int size; struct vector2ui pos; unsigned int attr; unsigned long id; } Text; +unsigned long utf8_strlen(void *string); +void utf8to32_strcpy(wchar_t *dest, char *src); struct idlist *load_texts(char *filename); void text_destroy(void *text); -- cgit v1.2.3