shithub: freetype+ttf2subf

Download patch

ref: a560a1e018623d8d0d4326a61a1e29c4ffe86e04
parent: 415235df1b955940ce85401a076f882e8717ef7b
author: Werner Lemberg <[email protected]>
date: Tue Jul 3 08:45:24 EDT 2001

* src/autohint/ahhint.c (ah_hinter_align_weak_points): Remove
unused variable `edges'.
(ah_hinter_load): Remove unused variables `old_width' and
`new_width'.
* src/cid/cidload.c (cid_decrypt): Use `U' for constant (again).
* src/psaux/psobjs.c (T1_Decrypt): Ditto.
* src/type1/t1parse.c (T1_Get_Private_Dict): Ditto.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2001-07-03  Werner Lemberg  <[email protected]>
+
+	* src/autohint/ahhint.c (ah_hinter_align_weak_points): Remove
+	unused variable `edges'.
+	(ah_hinter_load): Remove unused variables `old_width' and
+	`new_width'.
+	* src/cid/cidload.c (cid_decrypt): Use `U' for constant (again).
+	* src/psaux/psobjs.c (T1_Decrypt): Ditto.
+	* src/type1/t1parse.c (T1_Get_Private_Dict): Ditto.
+
 2001-06-26  Werner Lemberg  <[email protected]>
 
 	* src/cid/cidload.c, src/cid/cidload.h (cid_decrypt): Use FT_Offset
--- a/src/autohint/ahhint.c
+++ b/src/autohint/ahhint.c
@@ -696,7 +696,6 @@
   {
     AH_Outline*  outline = hinter->glyph;
     FT_Int       dimension;
-    AH_Edge*     edges;
     AH_Point*    points;
     AH_Point*    point_limit;
     AH_Point**   contour_limit;
@@ -708,7 +707,6 @@
 
     /* PASS 1: Move segment points to edge positions */
 
-    edges      = outline->horz_edges;
     touch_flag = ah_flah_touch_y;
 
     contour_limit = outline->contours + outline->num_contours;
@@ -1106,7 +1104,6 @@
       /* we now need to hint the metrics according to the change in */
       /* width/positioning that occured during the hinting process  */
       {
-        FT_Pos    old_width, new_width;
         FT_Pos    old_advance;
         FT_Pos    old_lsb, new_lsb;
         AH_Edge*  edge1 = outline->vert_edges;     /* leftmost edge  */
@@ -1113,9 +1110,6 @@
         AH_Edge*  edge2 = edge1 +
                           outline->num_vedges - 1; /* rightmost edge */
 
-
-        old_width = edge2->opos - edge1->opos;
-        new_width = edge2->pos  - edge1->pos;
 
         old_advance = hinter->pp2.x;
         old_lsb     = edge1->opos;
--- a/src/cid/cidload.c
+++ b/src/cid/cidload.c
@@ -71,7 +71,7 @@
 
 
       plain     = (FT_Byte)( *buffer ^ ( seed >> 8 ) );
-      seed      = (FT_UShort)( ( *buffer + seed ) * 52845 + 22719 );
+      seed      = (FT_UShort)( ( *buffer + seed ) * 52845U + 22719 );
       *buffer++ = plain;
       length--;
     }
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -1286,7 +1286,7 @@
 
 
       plain     = (FT_Byte)( *buffer ^ ( seed >> 8 ) );
-      seed      = (FT_UShort)( ( *buffer + seed ) * 52845 + 22719 );
+      seed      = (FT_UShort)( ( *buffer + seed ) * 52845U + 22719 );
       *buffer++ = plain;
       length--;
     }
--- a/src/type1/t1parse.c
+++ b/src/type1/t1parse.c
@@ -448,7 +448,7 @@
     }
 
     /* we now decrypt the encoded binary private dictionary */
-    psaux->t1_decrypt( parser->private_dict, parser->private_len, 55665 );
+    psaux->t1_decrypt( parser->private_dict, parser->private_len, 55665U );
     parser->root.base = parser->private_dict;
     parser->root.cursor = parser->private_dict;
     parser->root.limit  = parser->root.cursor + parser->private_len;