From 1d928ae4b6dedfb07fb73c2688cd02510c74841f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 19 Feb 2022 22:15:45 +0100 Subject: Use version 1.0 of libgrapheme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libparsepsf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libparsepsf.c b/libparsepsf.c index 7c7b655..9649f63 100644 --- a/libparsepsf.c +++ b/libparsepsf.c @@ -264,7 +264,7 @@ libparsepsf_parse_font(const void *data, size_t size, struct libparsepsf_font *f } else { u32 = (uint32_t)u16; } - n = grapheme_cp_encode(u32, utf8, sizeof(utf8)); + n = grapheme_encode_utf8(u32, (char *)utf8, sizeof(utf8)); if (n > sizeof(utf8)) abort(); if (put_map(fontp, i, utf8, n)) @@ -297,7 +297,7 @@ libparsepsf_parse_font(const void *data, size_t size, struct libparsepsf_font *f } else { u32 = (uint32_t)u16; } - n = grapheme_cp_encode(u32, utf8, sizeof(utf8)); + n = grapheme_encode_utf8(u32, (char *)utf8, sizeof(utf8)); if (n > sizeof(utf8)) abort(); if (put_map_incomplete(fontp, utf8, n, &utf8_saved, &utf8_node)) -- cgit v1.2.3-70-g09d2