Commit 43f0e26c8e501de290a4653d9834afb077de371c

Werner Lemberg 2004-07-17T16:45:21

* docs/CHANGES: Updated. * src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix compiler warning.

diff --git a/ChangeLog b/ChangeLog
index 2860557..627c51a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,15 +1,21 @@
+2004-07-15  Werner Lemberg  <wl@gnu.org>
+
+	* docs/CHANGES: Updated.
+
+	* src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix compiler
+	warning.
+
 2004-07-15  David Turner  <david@freetype.org>
 
-        * src/base/ftstroke (FT_Stroker_ParseOutline): single points
-        are not stroked, preventing a bug with pala.ttf and other
-        fonts.
+	* src/base/ftstroke.c (FT_Stroker_ParseOutline): Single points
+	are not stroked, preventing a bug with pala.ttf and other
+	fonts.
 
-        * include/freetype/ftstroke.h: updating documentation comments.
-        I hereby declare the stroker as OFFICIAL !
+	* include/freetype/ftstroke.h: Updating documentation comments.
 
 2004-07-13  Werner Lemberg  <wl@gnu.org>
 
-	* src/base/ftstroke (ft_stroke_border_reverse): Removed.  Unused.
+	* src/base/ftstroke.c (ft_stroke_border_reverse): Removed.  Unused.
 
 2004-07-12  David Turner  <david@freetype.org>
 
diff --git a/docs/CHANGES b/docs/CHANGES
index fdb9ce3..55164a3 100644
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -22,6 +22,8 @@ LATEST CHANGES BETWEEN 2.1.9 and 2.1.8
     - The BDF driver now uses the DEFAULT_CHAR property (if available)
       to select a glyph shape for the undefined glyph.
 
+    - The stroker failed for closed outlines and single points.
+
 
   II. IMPORTANT CHANGES
 
@@ -37,6 +39,11 @@ LATEST CHANGES BETWEEN 2.1.9 and 2.1.8
       considerably.   See the documentation of  `FT_GlyphSlotRec'  and
       the `ftstring' demo program how to use it.
 
+    - Loading TrueType and Type 1 fonts has been made much faster.
+
+    - The stroker is  no longer experimental (but the  cache subsystem
+      still is).
+
 
   III. MISCELLANEOUS
 
diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h
index a2349a5..028c6ea 100644
--- a/include/freetype/config/ftoption.h
+++ b/include/freetype/config/ftoption.h
@@ -315,7 +315,7 @@ FT_BEGIN_HEADER
   /*   them for certain configurations only.                               */
   /*                                                                       */
 /* #define FT_DEBUG_LEVEL_ERROR */
-#define FT_DEBUG_LEVEL_TRACE
+/* #define FT_DEBUG_LEVEL_TRACE */
 
 
   /*************************************************************************/
diff --git a/include/freetype/ftstroke.h b/include/freetype/ftstroke.h
index 9b58375..0d95800 100644
--- a/include/freetype/ftstroke.h
+++ b/include/freetype/ftstroke.h
@@ -23,8 +23,10 @@
 #include FT_OUTLINE_H
 #include FT_GLYPH_H
 
+
 FT_BEGIN_HEADER
 
+
  /************************************************************************
   *
   * <Section>
@@ -34,19 +36,19 @@ FT_BEGIN_HEADER
   *    Glyph Stroker
   *
   * <Abstract>
-  *    Generating bordered and stroked glyphs
+  *    Generating bordered and stroked glyphs.
   *
   * <Description>
-  *    FreeType now provides a glyph stroker component that is capable
-  *    of generating stroked outlines of a given vectorial glyph. It
-  *    also allows you to retrieve the "outside" and/or "inside" borders
-  *    of the stroke.
+  *    This component generates stroked outlines of a given vectorial
+  *    glyph.  It also allows you to retrieve the `outside' and/or the
+  *    `inside' borders of the stroke.
   *
-  *    This can be useful to generate "bordered" glyph, i.e. glyphs
-  *    displayed with a colored (and anti-aliased) border around their
+  *    This can be useful to generate `bordered' glyph, i.e., glyphs
+  *    displayed with a coloured (and anti-aliased) border around their
   *    shape.
   */
 
+
  /**************************************************************
   *
   * @type:
diff --git a/src/base/ftstroke.c b/src/base/ftstroke.c
index c44ad9e..40128ac 100644
--- a/src/base/ftstroke.c
+++ b/src/base/ftstroke.c
@@ -1633,14 +1633,13 @@
 
     for ( n = 0; n < outline->n_contours; n++ )
     {
-      FT_Int  last;  /* index of last point in contour */
+      FT_UInt  last;  /* index of last point in contour */
 
 
       last  = outline->contours[n];
       limit = outline->points + last;
 
-     /* skip empty points, we don't stroke these
-      */
+      /* skip empty points; we don't stroke these */
       if ( last <= first )
       {
         first = last + 1;