shithub: freetype+ttf2subf

Download patch

ref: 2f4abaec38c11a16c2af06597b37c94d14878eda
parent: 4ed1b98dbd5526090d4c302a6d9b93a70469c5a1
author: Ewald Hew <[email protected]>
date: Mon Sep 25 03:04:43 EDT 2017

Extend Adobe interpreter (setcurrentpoint).

* src/psaux/psintrp.c (cf2_interpT2CharString)
<cf2_escSETCURRENTPT>: Fix stack access.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2017-09-25  Ewald Hew  <[email protected]>
 
+	[psaux] Extend Adobe interpreter (setcurrentpoint).
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString)
+	<cf2_escSETCURRENTPT>: Fix stack access.
+
+2017-09-25  Ewald Hew  <[email protected]>
+
 	[psaux] Extend Adobe interpreter (`closepath').
 
 	* src/psaux/psintrp.c (cf2_interpT2CharString) <c2f_cmdCLOSEPATH>:
--- a/src/psaux/psintrp.c
+++ b/src/psaux/psintrp.c
@@ -1621,8 +1621,9 @@
                       ...
 #endif
 
-                    x = top[0];
-                    y = top[1];
+                    curY = cf2_stack_popFixed( opStack );
+                    curX = cf2_stack_popFixed( opStack );
+
                     decoder->flex_state = 0;
                   }
                   break;