freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] ewaldhew-cleaned 0df3bfb 23/36: [psaux] Extend Adobe interpr


From: Hew Yih Shiuan Ewald
Subject: [freetype2] ewaldhew-cleaned 0df3bfb 23/36: [psaux] Extend Adobe interpreter. (closepath)
Date: Wed, 9 Aug 2017 21:36:11 -0400 (EDT)

branch: ewaldhew-cleaned
commit 0df3bfbce316b3cad1976ef70e3d67e3f95b7f1d
Author: Ewald Hew <address@hidden>
Commit: Ewald Hew <address@hidden>

    [psaux] Extend Adobe interpreter. (closepath)
    
    * src/psaux/psintrp.c (cf2_interpT2CharString)
    <closepath>: Use the right builder function.
    We can use the haveWidth boolean already present, instead of implementing
    parse_state.
---
 src/psaux/psintrp.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/psaux/psintrp.c b/src/psaux/psintrp.c
index d662264..b80fdbe 100644
--- a/src/psaux/psintrp.c
+++ b/src/psaux/psintrp.c
@@ -926,11 +926,9 @@
           FT_TRACE4(( " closepath" ));
 
           /* if there is no path, `closepath' is a no-op */
-          if ( builder->parse_state == T1_Parse_Have_Path   ||
-               builder->parse_state == T1_Parse_Have_Moveto )
-            t1_builder_close_contour( builder );
+          ps_builder_close_contour( &decoder->builder );
 
-          builder->parse_state = T1_Parse_Have_Width;
+          haveWidth = TRUE;
         }
         break;
         



reply via email to

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