Commit 634df6e3ba1370110f057dce5285df23594940c9

Werner Lemberg 2008-09-16T07:25:31

* src/cff/cffgload.h, src/cff/cffgload.c (cff_decoder_set_width_only): Eliminate function call.

diff --git a/ChangeLog b/ChangeLog
index aa30381..4dc0182 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-16  Werner Lemberg  <wl@gnu.org>
+
+	* src/cff/cffgload.h, src/cff/cffgload.c
+	(cff_decoder_set_width_only): Eliminate function call.
+
 2008-09-15  George Williams  <gww@silcom.com>
 
 	Fix Savannah bug #24179, reported by Bram Tassyns.
diff --git a/include/freetype/ftstroke.h b/include/freetype/ftstroke.h
index 38d2055..1596f6a 100644
--- a/include/freetype/ftstroke.h
+++ b/include/freetype/ftstroke.h
@@ -249,7 +249,7 @@ FT_BEGIN_HEADER
    *     expressed as 16.16 fixed point value.
    *
    * @note:
-   *   The radius is expressed in the same units that the outline
+   *   The radius is expressed in the same units as the outline
    *   coordinates.
    */
   FT_EXPORT( void )
@@ -305,10 +305,10 @@ FT_BEGIN_HEADER
    *
    * @note:
    *   If `opened' is~0 (the default), the outline is treated as a closed
-   *   path, and the stroker will generate two distinct `border' outlines.
+   *   path, and the stroker generates two distinct `border' outlines.
    *
    *   If `opened' is~1, the outline is processed as an open path, and the
-   *   stroker will generate a single `stroke' outline.
+   *   stroker generates a single `stroke' outline.
    *
    *   This function calls @FT_Stroker_Rewind automatically.
    */
@@ -366,7 +366,7 @@ FT_BEGIN_HEADER
    *
    * @note:
    *   You should call this function after @FT_Stroker_BeginSubPath.
-   *   If the subpath was not `opened', this function will `draw' a
+   *   If the subpath was not `opened', this function `draws' a
    *   single line segment to the start position when needed.
    */
   FT_EXPORT( FT_Error )
@@ -476,7 +476,7 @@ FT_BEGIN_HEADER
    *
    * @description:
    *   Call this function once you have finished parsing your paths
-   *   with the stroker.  It will return the number of points and
+   *   with the stroker.  It returns the number of points and
    *   contours necessary to export one of the `border' or `stroke'
    *   outlines generated by the stroker.
    *
@@ -525,8 +525,8 @@ FT_BEGIN_HEADER
    *   export the corresponding border to your own @FT_Outline
    *   structure.
    *
-   *   Note that this function will append the border points and
-   *   contours to your outline, but will not try to resize its
+   *   Note that this function appends the border points and
+   *   contours to your outline, but does not try to resize its
    *   arrays.
    *
    * @input:
@@ -600,8 +600,8 @@ FT_BEGIN_HEADER
    *   Call this function after @FT_Stroker_GetBorderCounts to
    *   export the all borders to your own @FT_Outline structure.
    *
-   *   Note that this function will append the border points and
-   *   contours to your outline, but will not try to resize its
+   *   Note that this function appends the border points and
+   *   contours to your outline, but does not try to resize its
    *   arrays.
    *
    * @input:
diff --git a/src/cff/cffgload.c b/src/cff/cffgload.c
index 3814220..53ec3e5 100644
--- a/src/cff/cffgload.c
+++ b/src/cff/cffgload.c
@@ -385,13 +385,6 @@
   }
 
 
-  FT_LOCAL_DEF( void )
-  cff_decoder_set_width_only( CFF_Decoder*  decoder )
-  {
-    decoder->width_only = 1;
-  }
-
-
   /* this function is used to select the subfont */
   /* and the locals subrs array                  */
   FT_LOCAL_DEF( FT_Error )
@@ -2573,7 +2566,7 @@
                         FT_LOAD_TARGET_MODE( load_flags ) );
 
       if ( load_flags & FT_LOAD_ADVANCE_ONLY )
-        cff_decoder_set_width_only( &decoder );
+        decoder.width_only = TRUE;
 
       decoder.builder.no_recurse =
         (FT_Bool)( load_flags & FT_LOAD_NO_RECURSE );
diff --git a/src/cff/cffgload.h b/src/cff/cffgload.h
index bf21654..667134e 100644
--- a/src/cff/cffgload.h
+++ b/src/cff/cffgload.h
@@ -169,9 +169,6 @@ FT_BEGIN_HEADER
                     FT_Bool         hinting,
                     FT_Render_Mode  hint_mode );
 
-  FT_LOCAL( void )
-  cff_decoder_set_width_only( CFF_Decoder*  decoder );
-
   FT_LOCAL( FT_Error )
   cff_decoder_prepare( CFF_Decoder*  decoder,
                        CFF_Size      size,