summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cff/cffdrivr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cff/cffdrivr.c b/src/cff/cffdrivr.c
index 688c4c0b3..81bff1fcc 100644
--- a/src/cff/cffdrivr.c
+++ b/src/cff/cffdrivr.c
@@ -471,6 +471,12 @@
FT_Error error = FT_Err_Ok;
+ if ( face->is_cff2 )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Fail;
+ }
+
if ( cff && !cff->font_info )
{
CFF_FontRecDict dict = &cff->top_font.font_dict;