[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.
This commit is contained in:
Ewald Hew 2017-07-24 11:37:22 +08:00
parent 3083d228ea
commit 3bd5f53ac7
1 changed files with 2 additions and 4 deletions

View File

@ -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;