aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-19 22:15:45 +0100
committerMattias Andrée <maandree@kth.se>2022-02-19 22:15:45 +0100
commit1d928ae4b6dedfb07fb73c2688cd02510c74841f (patch)
treec706f26c53992ff80f4e95d562ff2c32c4b5c262
parentImprove makefile (diff)
downloadlibparsepsf-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.c4
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))