Commit 2fd491d5f3ec42287a49d1aa5c0166b46f417fde

Just van Rossum 2000-08-01T23:37:25

Fixed Z1_Parse_CharStrings() to work correctly with "open" paths (ie. missing closepath operator)

diff --git a/src/type1z/z1gload.c b/src/type1z/z1gload.c
index a1ceb50..4cd4503 100644
--- a/src/type1z/z1gload.c
+++ b/src/type1z/z1gload.c
@@ -1045,6 +1045,7 @@
           FT_TRACE4(( " hmoveto" ));
 
           x += top[0];
+          builder->path_begun = 0;
           break;
 
         case op_hvcurveto:
@@ -1082,6 +1083,7 @@
 
           x += top[0];
           y += top[1];
+          builder->path_begun = 0;
           break;
 
         case op_rrcurveto:
@@ -1133,6 +1135,7 @@
           FT_TRACE4(( " vmoveto" ));
 
           y += top[0];
+          builder->path_begun = 0;
           break;
 
         case op_div: