[cairo-commit] src/cairo-type1-subset.c
Adrian Johnson
ajohnson at kemper.freedesktop.org
Tue Feb 8 03:14:11 PST 2011
src/cairo-type1-subset.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 0984c9ea27318e852d78ce76a62e08db20e02f4d
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Tue Feb 8 21:40:08 2011 +1030
Type1-subset: Fallback if font contains more than one /Encoding
https://bugzilla.gnome.org/show_bug.cgi?id=641704
diff --git a/src/cairo-type1-subset.c b/src/cairo-type1-subset.c
index e0b1bf8..082526d 100644
--- a/src/cairo-type1-subset.c
+++ b/src/cairo-type1-subset.c
@@ -422,6 +422,10 @@ cairo_type1_font_subset_write_header (cairo_type1_font_subset_t *font,
return CAIRO_INT_STATUS_UNSUPPORTED;
end += 3;
+ /* There are some buggy fonts that contain more than one /Encoding */
+ if (find_token (end, segment_end, "/Encoding"))
+ return CAIRO_INT_STATUS_UNSUPPORTED;
+
_cairo_output_stream_write (font->output, end, segment_end - end);
return font->output->status;
More information about the cairo-commit
mailing list