summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-03-03 12:18:39 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-03-03 12:48:21 +0100
commit4c16a5371c109be8d52eae8690ab96ceebf1349b (patch)
tree5597f48089c9e706ee4047b4e82442a360643166 /include
parentd84fc450c0434d9b0c7230e39a55b29d979af0fe (diff)
downloadmupdf-4c16a5371c109be8d52eae8690ab96ceebf1349b.tar.xz
pdf: Additional entries in Mac OS Roman encoding not in MacRomanEncoding.
When encoding truetype fonts via the mac roman cmap table, we should be using the additional entries introduced in PDF 1.5, which are different from the standard MacRomanEncoding table in the appendix.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/pdf/font.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mupdf/pdf/font.h b/include/mupdf/pdf/font.h
index d2421ab0..63177061 100644
--- a/include/mupdf/pdf/font.h
+++ b/include/mupdf/pdf/font.h
@@ -18,8 +18,8 @@ enum
PDF_FD_FORCE_BOLD = 1 << 18
};
-void pdf_load_encoding(char **estrings, char *encoding);
-int pdf_lookup_agl(char *name);
+void pdf_load_encoding(const char **estrings, char *encoding);
+int pdf_lookup_agl(const char *name);
const char **pdf_lookup_agl_duplicates(int ucs);
extern const unsigned short pdf_doc_encoding[256];
@@ -99,7 +99,7 @@ void pdf_end_vmtx(fz_context *ctx, pdf_font_desc *font);
pdf_hmtx pdf_lookup_hmtx(fz_context *ctx, pdf_font_desc *font, int cid);
pdf_vmtx pdf_lookup_vmtx(fz_context *ctx, pdf_font_desc *font, int cid);
-void pdf_load_to_unicode(fz_context *ctx, pdf_document *doc, pdf_font_desc *font, char **strings, char *collection, pdf_obj *cmapstm);
+void pdf_load_to_unicode(fz_context *ctx, pdf_document *doc, pdf_font_desc *font, const char **strings, char *collection, pdf_obj *cmapstm);
int pdf_font_cid_to_gid(fz_context *ctx, pdf_font_desc *fontdesc, int cid);