* docs/CHANGES: Updated. * src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix compiler warning.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
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;