diff options
author | Simon Bünzli <zeniko@gmail.com> | 2014-02-22 15:44:27 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2014-02-25 12:15:18 +0000 |
commit | 5d8f2a362e588ddc40422abe3c43402ff67fa3ec (patch) | |
tree | d83931cf1aea9b5d02a7f4c38aafcdebc43f6622 | |
parent | 9a0954091d7108be84f5d9a624d8e7d0d7beced8 (diff) | |
download | mupdf-5d8f2a362e588ddc40422abe3c43402ff67fa3ec.tar.xz |
load StandardEncoding for non-embedded non-symbolic encoding-less fonts
See https://code.google.com/p/sumatrapdf/issues/detail?id=2526 for a
file which renders wrongly if no encoding is loaded.
-rw-r--r-- | source/pdf/pdf-font.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/pdf/pdf-font.c b/source/pdf/pdf-font.c index f8e787a4..8454e925 100644 --- a/source/pdf/pdf-font.c +++ b/source/pdf/pdf-font.c @@ -563,6 +563,8 @@ pdf_load_simple_font_by_name(pdf_document *doc, pdf_obj *dict, char *basefont) } } } + else if (!fontdesc->is_embedded && !symbolic) + pdf_load_encoding(estrings, "StandardEncoding"); /* start with the builtin encoding */ for (i = 0; i < 256; i++) |