ref: 0634a876d9cccff49212e514aec81e36a3a7754e
parent: f68cfd096f210890422417a08e8c8b1799b4146a
author: David Turner <[email protected]>
date: Thu Jul 15 17:08:13 EDT 2004
* src/base/ftstroke (FT_Stroker_ParseOutline): single points are not stroked, preventing a bug with pala.ttf and other fonts.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-07-15 David Turner <[email protected]>
+
+ * src/base/ftstroke (FT_Stroker_ParseOutline): single points
+ are not stroked, preventing a bug with pala.ttf and other
+ fonts.
+
2004-07-13 Werner Lemberg <[email protected]>
* src/base/ftstroke (ft_stroke_border_reverse): Removed. Unused.
@@ -12,7 +18,7 @@
* src/cache/ftcsbits.c (ftc_snode_load): Fixing advance computation
for transformed glyphs.
-
+
2004-07-11 David Turner <[email protected]>
Fix bugs that prevented the stroker to correctly generate stroked
--- a/include/freetype/config/ftoption.h
+++ b/include/freetype/config/ftoption.h
@@ -315,7 +315,7 @@
/* them for certain configurations only. */
/* */
/* #define FT_DEBUG_LEVEL_ERROR */
-/* #define FT_DEBUG_LEVEL_TRACE */
+#define FT_DEBUG_LEVEL_TRACE
/*************************************************************************/
--- a/src/base/ftstroke.c
+++ b/src/base/ftstroke.c
@@ -1639,6 +1639,14 @@
last = outline->contours[n];
limit = outline->points + last;
+ /* skip empty points, we don't stroke these
+ */
+ if ( last <= first )
+ {
+ first = last + 1;
+ continue;
+ }
+
v_start = outline->points[first];
v_last = outline->points[last];