summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2023-04-21 12:11:39 +0100
committerChris Liddell <chris.liddell@artifex.com>2023-04-21 13:48:10 +0100
commitb1b4d7c55f933b18d01e5c60a0677b9774402e47 (patch)
tree0b2a9e47c4156c67b44fa7525e44f7aa88dc2a2c
parentb0739b945394ec81a5420cf02e951fae26923dce (diff)
downloadghostpdl-b1b4d7c55f933b18d01e5c60a0677b9774402e47.tar.gz
Bug 706595: Use a more meaningful "fake" XUID for high level devices
Using the PDF object number (rather than the internal gs_id for the font) as an element in the XUID means pdfwrite/ps2write can be more consistent in identifying repeated uses of the same font embedded in a PDF.
-rw-r--r--pdf/pdf_font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_font.c b/pdf/pdf_font.c
index f505448bb..858272bc2 100644
--- a/pdf/pdf_font.c
+++ b/pdf/pdf_font.c
@@ -2185,7 +2185,7 @@ int pdfi_font_generate_pseudo_XUID(pdf_context *ctx, pdf_dict *fontdict, gs_font
xvalues[0] = 1000000; /* "Private" value */
xvalues[1] = hash;
- xvalues[2] = ctx->device_state.HighLevelDevice ? pfont->id : 0;
+ xvalues[2] = ctx->device_state.HighLevelDevice ? fontdict->object_num : 0;
if (uid_is_XUID(&pfont->UID)) {
for (i = 0; i < uid_XUID_size(&pfont->UID); i++) {