From 9ada93e99ab3cdfc9542a5facbeacd582d2c5227 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 26 Dec 2021 11:45:41 +0100 Subject: Update to use version 1 of libgrapheme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libskrift_draw_text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libskrift_draw_text.c') 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); } } -- cgit v1.2.3-70-g09d2