ref: fa3651e7d8af95b080db00d25a5ada0a5f77ef3d
parent: 42137bc6145c426702b90d0cec5c5acd332739ae
author: Werner Lemberg <[email protected]>
date: Tue Mar 28 00:06:50 EST 2006
formatting, copyright year
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,8 @@
2006-03-27 David Turner <[email protected]>
- * src/sfnt/ttkern.c (tt_face_get_kerning): fixed a serious bug
- that caused some programs to go into an infinite loop when dealing
- with fonts that don't have a properly sorted kerning sub-table
+ * src/sfnt/ttkern.c (tt_face_get_kerning): Fix a serious bug that
+ causes some programs to go into an infinite loop when dealing with
+ fonts that don't have a properly sorted kerning sub-table.
2006-03-26 Werner Lemberg <[email protected]>
--- a/src/sfnt/ttkern.c
+++ b/src/sfnt/ttkern.c
@@ -5,7 +5,7 @@
/* Load the basic TrueType kerning table. This doesn't handle */
/* kerning data within the GPOS table at the moment. */
/* */
-/* Copyright 1996-2001, 2002, 2003, 2004, 2005 by */
+/* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -248,6 +248,7 @@
{
FT_UInt count2;
+
for ( count2 = num_pairs; count2 > 0; count2-- )
{
FT_ULong key = FT_NEXT_ULONG( p );
@@ -265,7 +266,7 @@
break;
/*
- * We don't support format 2 because we've never seen a single font
+ * We don't support format 2 because we haven't seen a single font
* using it in real life...
*/