aboutsummaryrefslogtreecommitdiffstats
path: root/libskrift_draw_text.c
diff options
context:
space:
mode:
Diffstat (limited to 'libskrift_draw_text.c')
-rw-r--r--libskrift_draw_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libskrift_draw_text.c b/libskrift_draw_text.c
index e827159..f3615d7 100644
--- a/libskrift_draw_text.c
+++ b/libskrift_draw_text.c
@@ -6,7 +6,7 @@ reverse_text(const char *restrict text, size_t text_length, char *restrict s)
{
size_t n, off = text_length;
for (; text_length; text += n, text_length -= n) {
- off -= n = grapheme_bytelen(text);
+ off -= n = grapheme_next_character_break(text, text_length);
memcpy(&s[off], text, n);
}
}