shithub: freetype+ttf2subf

Download patch

ref: 43f0e26c8e501de290a4653d9834afb077de371c
parent: 9f67a45dbe76aedfcfadaa454163341f35fee6e3
author: Werner Lemberg <[email protected]>
date: Sat Jul 17 12:45:21 EDT 2004

* docs/CHANGES: Updated.

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

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,15 +1,21 @@
+2004-07-15  Werner Lemberg  <[email protected]>
+
+	* docs/CHANGES: Updated.
+
+	* src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix compiler
+	warning.
+
 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.
+	* 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  <[email protected]>
 
-	* src/base/ftstroke (ft_stroke_border_reverse): Removed.  Unused.
+	* src/base/ftstroke.c (ft_stroke_border_reverse): Removed.  Unused.
 
 2004-07-12  David Turner  <[email protected]>
 
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -22,7 +22,9 @@
     - 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
 
     - George  Williams   contributed  code  to   handle  Apple's  font
@@ -36,6 +38,11 @@
       active.  Using those values can improve the inter-letter spacing
       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
--- 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/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,18 +36,18 @@
   *    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.
   */
+
 
  /**************************************************************
   *
--- 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;