* docs/CHANGES: Updated.

* src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix compiler
warning.
This commit is contained in:
Werner Lemberg 2004-07-17 16:45:21 +00:00
parent 9f67a45dbe
commit 43f0e26c8e
5 changed files with 31 additions and 17 deletions

View File

@ -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>

View File

@ -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

View File

@ -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 */
/*************************************************************************/

View File

@ -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:

View File

@ -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;