shithub: freetype+ttf2subf

Download patch

ref: 55d5a1cbe9483255236f29fbbcdcc4b69ea4a265
parent: d5d3e41daca1bc3f27d83c0ac78107f92ef047a9
author: Yamato, Masatake (大和正武) <[email protected]>
date: Sat Dec 30 15:24:30 EST 2006

(gxv_kern_subtable_fmt0_pairs_validate): Show the trace message after validating gids.

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/gxvalid/gxvkern.c
+++ b/src/gxvalid/gxvkern.c
@@ -127,14 +127,16 @@
       FT_Short   kernValue;
 
 
+      /* left */
       gid_left  = FT_NEXT_USHORT( p );
-      gid_right = FT_NEXT_USHORT( p );
-
-      GXV_TRACE(( "left gid = %u, right gid = %u\n", gid_left, gid_right ));
       gxv_glyphid_validate( gid_left, valid );
+
+      /* right */
+      gid_right = FT_NEXT_USHORT( p );
       gxv_glyphid_validate( gid_right, valid );
 
       /* A pair of left and right gid must be uniqe and be sorted. */
+      GXV_TRACE(( "left gid = %u, right gid = %u\n", gid_left, gid_right ));
       if ( gid_left == last_gid_left )
       {
         if ( last_gid_right < gid_right )