summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-06-13 11:48:07 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-06-22 16:23:34 +0200
commit7d2407571d8c8851b67af5ddd0429467c7048b16 (patch)
treec7c128a56f3a6768b783c1b805c122b26f54ba07 /include
parent61f58980aa353dda3bdb9b563b87cd0e8741d0f0 (diff)
downloadmupdf-7d2407571d8c8851b67af5ddd0429467c7048b16.tar.xz
Remember the md5 digest in the fz_font struct.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/font.h2
-rw-r--r--include/mupdf/pdf/resource.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h
index 85904b02..aa6d4dd5 100644
--- a/include/mupdf/fitz/font.h
+++ b/include/mupdf/fitz/font.h
@@ -593,6 +593,8 @@ void fz_get_glyph_name(fz_context *ctx, fz_font *font, int glyph, char *buf, int
float fz_font_ascender(fz_context *ctx, fz_font *font);
float fz_font_descender(fz_context *ctx, fz_font *font);
+void fz_font_digest(fz_context *ctx, fz_font *font, unsigned char digest[16]);
+
/*
Internal functions for our Harfbuzz integration
to work around the lack of thread safety.
diff --git a/include/mupdf/pdf/resource.h b/include/mupdf/pdf/resource.h
index 2febc8b7..b6a2a4b5 100644
--- a/include/mupdf/pdf/resource.h
+++ b/include/mupdf/pdf/resource.h
@@ -20,7 +20,7 @@ void pdf_empty_store(fz_context *ctx, pdf_document *doc);
enum { PDF_SIMPLE_FONT_RESOURCE=1, PDF_CID_FONT_RESOURCE=2, PDF_CJK_FONT_RESOURCE=3 };
enum { PDF_SIMPLE_ENCODING_LATIN, PDF_SIMPLE_ENCODING_GREEK, PDF_SIMPLE_ENCODING_CYRILLIC };
-pdf_obj *pdf_find_font_resource(fz_context *ctx, pdf_document *doc, int type, int encoding, fz_buffer *item, unsigned char md5[16]);
+pdf_obj *pdf_find_font_resource(fz_context *ctx, pdf_document *doc, int type, int encoding, fz_font *item, unsigned char md5[16]);
pdf_obj *pdf_insert_font_resource(fz_context *ctx, pdf_document *doc, unsigned char md5[16], pdf_obj *obj);
pdf_obj *pdf_find_image_resource(fz_context *ctx, pdf_document *doc, fz_image *item, unsigned char md5[16]);
pdf_obj *pdf_insert_image_resource(fz_context *ctx, pdf_document *doc, unsigned char md5[16], pdf_obj *obj);