diff --git a/src/type1/t1load.c b/src/type1/t1load.c index ce6607ff3..719667982 100644 --- a/src/type1/t1load.c +++ b/src/type1/t1load.c @@ -827,6 +827,9 @@ FT_Byte* cur2; FT_Byte* limit; + if ( face->type1.font_name ) + /* with synthetic fonts, it's possible we get here twice */ + return; T1_Skip_Spaces( parser ); @@ -1095,6 +1098,9 @@ PSAux_Interface* psaux = (PSAux_Interface*)face->psaux; + if ( loader->num_subrs ) + /* with synthetic fonts, it's possible we get here twice */ + return; loader->num_subrs = T1_ToInt( parser ); if ( parser->root.error )