ref: 2873010d1538996e902cdafac52e22cc39fd4df1
parent: 8ed9eaf1cccd3112870939fbb932dd31fca95589
author: Werner Lemberg <[email protected]>
date: Mon Feb 15 15:53:22 EST 2016
[cff] Handle T2 operator only with old CFF engine (#47157). * src/cff/cffparse.c (cff_parser_run) <opcode 31>: Enclose with
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2016-02-15 Werner Lemberg <[email protected]>
+ [cff] Handle T2 operator only with old CFF engine (#47157).
+
+ * src/cff/cffparse.c (cff_parser_run) <opcode 31>: Enclose with
+ #ifdef CFF_CONFIG_OPTION_OLD_ENGINE...#endif.
+
+2016-02-15 Werner Lemberg <[email protected]>
+
[cff] Partially handle `load' and `store' ops in old CFF engine.
Now all glyphs of MM CFFs like `ITCGaramondMM-It.otf' can be
--- a/src/cff/cffparse.c
+++ b/src/cff/cffparse.c
@@ -1049,6 +1049,7 @@
else if ( v > 246 )
p += 1;
}
+#ifdef CFF_CONFIG_OPTION_OLD_ENGINE
else if ( v == 31 )
{
/* a Type 2 charstring */
@@ -1177,6 +1178,7 @@
stack++;
}
}
+#endif /* CFF_CONFIG_OPTION_OLD_ENGINE */
else
{
/* This is not a number, hence it's an operator. Compute its code */