diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-09-19 13:20:01 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-09-21 14:21:05 +0200 |
commit | 211234411c68f4578c3bbfafeb84e8d26040443a (patch) | |
tree | b640e31e93aded0d3d6ddeeddeb74873a4c88c89 /source/tools | |
parent | 48b026e7500c5f7239e173d14d09b9e2e272e874 (diff) | |
download | mupdf-211234411c68f4578c3bbfafeb84e8d26040443a.tar.xz |
Add fz_lookup_cjk_font_by_name to create builtin CJK fonts.
Diffstat (limited to 'source/tools')
-rw-r--r-- | source/tools/murun.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/tools/murun.c b/source/tools/murun.c index 961d6a7a..0f8be8f3 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -2357,6 +2357,8 @@ static void ffi_new_Font(js_State *J) fz_try(ctx) { data = fz_lookup_base14_font(ctx, name, &size); + if (!data) + data = fz_lookup_cjk_font_by_language(ctx, name, &size, &index); if (data) font = fz_new_font_from_memory(ctx, name, data, size, index, 0); else |