summaryrefslogtreecommitdiff
path: root/source/fitz/noto.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-09-19 13:20:01 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-09-21 14:21:05 +0200
commit211234411c68f4578c3bbfafeb84e8d26040443a (patch)
treeb640e31e93aded0d3d6ddeeddeb74873a4c88c89 /source/fitz/noto.c
parent48b026e7500c5f7239e173d14d09b9e2e272e874 (diff)
downloadmupdf-211234411c68f4578c3bbfafeb84e8d26040443a.tar.xz
Add fz_lookup_cjk_font_by_name to create builtin CJK fonts.
Diffstat (limited to 'source/fitz/noto.c')
-rw-r--r--source/fitz/noto.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/fitz/noto.c b/source/fitz/noto.c
index c3eea9d6..7ab62488 100644
--- a/source/fitz/noto.c
+++ b/source/fitz/noto.c
@@ -177,6 +177,15 @@ fz_lookup_cjk_ordering_by_language(const char *name)
}
const unsigned char *
+fz_lookup_cjk_font_by_language(fz_context *ctx, const char *lang, int *size, int *subfont)
+{
+ int ordering = fz_lookup_cjk_ordering_by_language(lang);
+ if (ordering >= 0)
+ return fz_lookup_cjk_font(ctx, ordering, size, subfont);
+ return *size = 0, *subfont = 0, NULL;
+}
+
+const unsigned char *
fz_lookup_noto_font(fz_context *ctx, int script, int language, int *size, int *subfont)
{
/* TODO: Noto(SansSyriacEstrangela); */