freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] OpenType-1.8 e3ef1df 3/6: Disable seac for CFF2


From: Dave Arnold
Subject: [freetype2] OpenType-1.8 e3ef1df 3/6: Disable seac for CFF2
Date: Thu, 17 Nov 2016 16:23:03 +0000 (UTC)

branch: OpenType-1.8
commit e3ef1df506fe6cf4a5971e5bab3c663770506939
Author: Dave Arnold <address@hidden>
Commit: Dave Arnold <address@hidden>

    Disable seac for CFF2
---
 src/cff/cf2intrp.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/cff/cf2intrp.c b/src/cff/cf2intrp.c
index 2dd13c6..4bfaa64 100644
--- a/src/cff/cf2intrp.c
+++ b/src/cff/cf2intrp.c
@@ -1379,7 +1379,8 @@
         /* close path if still open */
         cf2_glyphpath_closeOpenPath( &glyphPath );
 
-        if ( cf2_stack_count( opStack ) > 1 )
+        /* disable seac for CFF2 (charstring ending with args on stack) */
+        if ( !font->isCFF2 && cf2_stack_count( opStack ) > 1 )
         {
           /* must be either 4 or 5 --                       */
           /* this is a (deprecated) implied `seac' operator */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]