shithub: freetype+ttf2subf

Download patch

ref: 963cfcd01250d787f76ba20f64e1bdb9623fb50f
parent: dea712b4eb4d33e293d44c8e736064f48ae050e3
author: Werner Lemberg <[email protected]>
date: Sun Aug 8 12:52:29 EDT 2004

* src/pfr/pfrload.c (pfr_sort_kerning_pairs): Single-byte
adjustments are unsigned, not signed.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-06  Adam Piotrowski  <[email protected]>
+
+	* src/pfr/pfrload.c (pfr_sort_kerning_pairs): Single-byte
+	adjustments are unsigned, not signed.
+
 2004-08-05  David Turner  <[email protected]>
 
 	`Activate' gray-scale specifing hinting within the TrueType
--- a/src/pfr/pfrload.c
+++ b/src/pfr/pfrload.c
@@ -4,7 +4,7 @@
 /*                                                                         */
 /*    FreeType PFR loader (body).                                          */
 /*                                                                         */
-/*  Copyright 2002, 2003 by                                                */
+/*  Copyright 2002, 2003, 2004 by                                          */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
 /*                                                                         */
 /*  This file is part of the FreeType project, and may only be used,       */
@@ -721,7 +721,7 @@
         if ( item->flags & PFR_KERN_2BYTE_ADJ )
           kerning = item->base_adj + FT_NEXT_SHORT( p );
         else
-          kerning = item->base_adj + FT_NEXT_CHAR( p );
+          kerning = item->base_adj + FT_NEXT_BYTE( p );
 
         pair->glyph1  = pfr_get_gindex( chars, num_chars, char1 );
         pair->glyph2  = pfr_get_gindex( chars, num_chars, char2 );