diff options
author | Ewald Hew <ewaldhew@gmail.com> | 2017-07-24 11:37:22 +0800 |
---|---|---|
committer | Ewald Hew <ewaldhew@gmail.com> | 2017-08-28 08:29:07 +0800 |
commit | be82fc50b961f2c9dae6875c85dfc261f655548b (patch) | |
tree | f178b02c46231da72021742a151eeb260b604129 | |
parent | 7927aff5104c02de9db7363960a06af7b9fb6d91 (diff) | |
download | freetype2-be82fc50b961f2c9dae6875c85dfc261f655548b.tar.gz |
[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.
-rw-r--r-- | src/psaux/psintrp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/psaux/psintrp.c b/src/psaux/psintrp.c index 133c3bcaa..7132ae8be 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; |