ref: 7ae5609dbe6acce55f48f65380b734a7db03e9ce
parent: 4c3bd2ab9372658ba2a3f09935db0c774abdff41
author: Alexei Podtelezhnikov <[email protected]>
date: Wed Jan 27 11:08:08 EST 2021
* src/base/ftstroke.c (FT_Stroker_EndSubPath): Ignore tiny gaps. Fixes bug #1020.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2021-01-27 Alexei Podtelezhnikov <[email protected]>
+ * src/base/ftstroke.c (FT_Stroker_EndSubPath): Ignore tiny gaps.
+
+ Fixes bug #1020.
+
+2021-01-27 Alexei Podtelezhnikov <[email protected]>
+
[stroker] Minor clean-up.
* src/base/ftstroke.c (FT_Stroker_{ConicTo,CubicTo}): Reset the last
--- a/src/base/ftstroke.c
+++ b/src/base/ftstroke.c
@@ -1900,8 +1900,8 @@
else
{
/* close the path if needed */
- if ( stroker->center.x != stroker->subpath_start.x ||
- stroker->center.y != stroker->subpath_start.y )
+ if ( !FT_IS_SMALL( stroker->center.x - stroker->subpath_start.x ) ||
+ !FT_IS_SMALL( stroker->center.y - stroker->subpath_start.y ) )
{
error = FT_Stroker_LineTo( stroker, &stroker->subpath_start );
if ( error )