diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-19 22:15:45 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-19 22:15:45 +0100 |
commit | 1d928ae4b6dedfb07fb73c2688cd02510c74841f (patch) | |
tree | c706f26c53992ff80f4e95d562ff2c32c4b5c262 | |
parent | Improve makefile (diff) | |
download | libparsepsf-1d928ae4b6dedfb07fb73c2688cd02510c74841f.tar.gz libparsepsf-1d928ae4b6dedfb07fb73c2688cd02510c74841f.tar.bz2 libparsepsf-1d928ae4b6dedfb07fb73c2688cd02510c74841f.tar.xz |
Use version 1.0 of libgrapheme
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | libparsepsf.c | 4 |
1 files 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)) |