summaryrefslogtreecommitdiff
path: root/freetype
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2019-01-08 16:35:51 +0000
committerChris Liddell <chris.liddell@artifex.com>2019-01-09 09:50:14 +0000
commitcb07f9786acc2faa85b1f3cce89339b65f99c310 (patch)
treec8adb80f8726cc78593bb625944d14253fcd42c8 /freetype
parentfc8c8630f929cbbe1df01fdc3186f25193b31f75 (diff)
downloadghostpdl-cb07f9786acc2faa85b1f3cce89339b65f99c310.tar.gz
Bug 700460: Fix Freetype Type1 path segment closepath
* src/psaux/psintrp.c: correctly close a contour All of the Type 1 path building is done with code common to the revised CFF engine, with the exception of closepath, which was still calling ps_builder_close_contour(), thus previously cached segments were not always written to the path, and glyph corruption, or even invalid outlines were possible. Switch to calling cf2_glyphpath_closeOpenPath() Committed upstream: http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=b75abeb5e6561024d182ccdc0eb36a7d2630310e
Diffstat (limited to 'freetype')
-rw-r--r--freetype/src/psaux/psintrp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/freetype/src/psaux/psintrp.c b/freetype/src/psaux/psintrp.c
index da5a8dad1..fcaa58d53 100644
--- a/freetype/src/psaux/psintrp.c
+++ b/freetype/src/psaux/psintrp.c
@@ -960,8 +960,7 @@
FT_TRACE4(( " closepath" ));
/* if there is no path, `closepath' is a no-op */
- ps_builder_close_contour( &decoder->builder );
-
+ cf2_glyphpath_closeOpenPath( &glyphPath );
haveWidth = TRUE;
}
break;