summaryrefslogtreecommitdiff
path: root/src/cairo-type1-subset.c
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2008-05-01 22:55:07 +0930
committerAdrian Johnson <ajohnson@redneon.com>2008-06-03 20:51:39 +0930
commit34c42202f0575be10a2e409fe66f1da95886353f (patch)
treeb01a5579dd283878808c9e801376f706d184c111 /src/cairo-type1-subset.c
parent6ae1061508d6b14b128a8fbf7558d3a64f9551fa (diff)
Remove XUID key from subsetted Type 1 fonts
Subsetted fonts must not share the same XUID as the original font.
Diffstat (limited to 'src/cairo-type1-subset.c')
-rw-r--r--src/cairo-type1-subset.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/cairo-type1-subset.c b/src/cairo-type1-subset.c
index 4f26e7b1..f51e5646 100644
--- a/src/cairo-type1-subset.c
+++ b/src/cairo-type1-subset.c
@@ -329,11 +329,11 @@ cairo_type1_font_subset_write_header (cairo_type1_font_subset_t *font,
* before /Encoding. This appears to always be the case with Type1
* fonts.
*
- * The more recently added code for removing the UniqueID key can
- * not make any assumptions about the position of the UniqueID key
- * in the dictionary so it is implemented by overwriting the key
- * definition with spaces before we start copying the font to the
- * output.
+ * The more recently added code for removing the UniqueID and XUID
+ * keys can not make any assumptions about the position of the
+ * keys in the dictionary so it is implemented by overwriting the
+ * key definition with spaces before we start copying the font to
+ * the output.
*
* This code should be rewritten to not make any assumptions about
* the order of dictionary keys. This will allow UniqueID to be
@@ -341,6 +341,7 @@ cairo_type1_font_subset_write_header (cairo_type1_font_subset_t *font,
* output.
*/
cairo_type1_font_erase_dict_key (font, "/UniqueID");
+ cairo_type1_font_erase_dict_key (font, "/XUID");
segment_end = font->header_segment + font->header_segment_size;