diff options
author | Mattias Andrée <maandree@kth.se> | 2021-12-26 11:45:41 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-12-26 11:45:41 +0100 |
commit | 9ada93e99ab3cdfc9542a5facbeacd582d2c5227 (patch) | |
tree | 9bca146ed6baaadf7b12f206a723e6f5fb2525a6 /libskrift_draw_text.c | |
parent | Small fixes + other font types should be handled via conversion (diff) | |
download | libskrift-9ada93e99ab3cdfc9542a5facbeacd582d2c5227.tar.gz libskrift-9ada93e99ab3cdfc9542a5facbeacd582d2c5227.tar.bz2 libskrift-9ada93e99ab3cdfc9542a5facbeacd582d2c5227.tar.xz |
Update to use version 1 of libgrapheme
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libskrift_draw_text.c | 2 |
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); } } |