diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-06-17 17:38:55 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-06-22 13:42:11 +0200 |
commit | 398b9126136fae6ffa78fb40bc768f2ebfdc4fa4 (patch) | |
tree | 82680dee2c62ed222dab5b5f3b4add737df8ec02 /source/fitz | |
parent | 937d5f23088d4dba475e24e3df4dcd719f7ad29a (diff) | |
download | mupdf-398b9126136fae6ffa78fb40bc768f2ebfdc4fa4.tar.xz |
Use vertical presentation forms.
Remap glyphs using presentation form code points rather than having
a separate vertical variant of the CJK font using truetype collections.
Recreate DroidSansFallback fonts from original source,
extend the glyph coverage from DroidSans,
subset the glyphs to match CJK CID collections,
and optimize the outlines using fontcrunch.
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/noto.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/fitz/noto.c b/source/fitz/noto.c index 3d646b52..4bdc133a 100644 --- a/source/fitz/noto.c +++ b/source/fitz/noto.c @@ -126,13 +126,12 @@ fz_lookup_builtin_font(fz_context *ctx, const char *name, int is_bold, int is_it const char * fz_lookup_cjk_font(fz_context *ctx, int registry, int serif, int wmode, int *size, int *index) { + if (index) *index = 0; #ifndef TOFU_CJK #ifndef TOFU_CJK_EXT - if (index) *index = wmode; - { RETURN(DroidSansFallbackFull_ttc); } + RETURN(DroidSansFallbackFull_ttf); #else - if (index) *index = wmode; - { RETURN(DroidSansFallback_ttc); } + RETURN(DroidSansFallback_ttf); #endif #else return *size = 0, NULL; |