diff options
author | Oxore <oxore@protonmail.com> | 2018-07-11 07:04:47 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2018-07-11 07:04:47 +0300 |
commit | 2b265ea0eb5825eccd3b9b072b5014bacf0d16d7 (patch) | |
tree | 2a53ce81ad53d6a6fcb9481bd17b535220db0080 /include | |
parent | 11cd6a8ac4d077b4d082021e1dcc6c6e48bd89d8 (diff) |
Migrate displayable text to utf32
Diffstat (limited to 'include')
-rw-r--r-- | include/text.h | 4 |
1 files changed, 3 insertions, 1 deletions
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); |