From 43f0e26c8e501de290a4653d9834afb077de371c Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 17 Jul 2004 16:45:21 +0000 Subject: [PATCH] * docs/CHANGES: Updated. * src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix compiler warning. --- ChangeLog | 18 ++++++++++++------ docs/CHANGES | 7 +++++++ include/freetype/config/ftoption.h | 2 +- include/freetype/ftstroke.h | 16 +++++++++------- src/base/ftstroke.c | 5 ++--- 5 files changed, 31 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2860557f7..627c51af6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,15 +1,21 @@ +2004-07-15 Werner Lemberg + + * docs/CHANGES: Updated. + + * src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix compiler + warning. + 2004-07-15 David Turner - * 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 - * src/base/ftstroke (ft_stroke_border_reverse): Removed. Unused. + * src/base/ftstroke.c (ft_stroke_border_reverse): Removed. Unused. 2004-07-12 David Turner diff --git a/docs/CHANGES b/docs/CHANGES index fdb9ce33d..55164a336 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 a2349a533..028c6ea9c 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 9b5837502..0d958007e 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 + /************************************************************************ * *
@@ -34,19 +36,19 @@ FT_BEGIN_HEADER * Glyph Stroker * * - * Generating bordered and stroked glyphs + * Generating bordered and stroked glyphs. * * - * 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 c44ad9e97..40128acba 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;