[cairo-commit] src/cairo-type1-subset.c
Adrian Johnson
ajohnson at kemper.freedesktop.org
Sat Oct 6 02:49:06 PDT 2007
src/cairo-type1-subset.c | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
diff-tree cbc4087a40aa7c6039ddadfca2a9876cb14e1bc6 (from a1633df6eebd9b1252d832c7a70cea6150c818d3)
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Sat Oct 6 19:18:31 2007 +0930
Type1 subset: Add check for CFF fonts
diff --git a/src/cairo-type1-subset.c b/src/cairo-type1-subset.c
index ceb20d9..031b19f 100644
--- a/src/cairo-type1-subset.c
+++ b/src/cairo-type1-subset.c
@@ -125,6 +125,14 @@ _cairo_type1_font_subset_create (cairo_u
goto fail1;
}
+ /* OpenType/CFF fonts also have a PS_FontInfoRec */
+#if HAVE_FT_LOAD_SFNT_TABLE
+ if (FT_IS_SFNT (face)) {
+ status = CAIRO_INT_STATUS_UNSUPPORTED;
+ goto fail1;
+ }
+#endif
+
font = calloc (sizeof (cairo_type1_font_subset_t), 1);
if (font == NULL) {
status = _cairo_error (CAIRO_STATUS_NO_MEMORY);
More information about the cairo-commit
mailing list