shithub: freetype+ttf2subf

Download patch

ref: 3dc00181747d197690c69b45b821fb2b719dac69
parent: 9a2b3b6d55f0266550770f95626de677c00e7282
author: Wu, Chia-I (吳佳一) <[email protected]>
date: Tue Feb 14 08:36:28 EST 2006

* src/sfnt/ttmtx.c (tt_face_get_metrics): Typo.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-02-14  Chia-I Wu  <[email protected]>
 
+	* src/sfnt/ttmtx.c (tt_face_get_metrics): Typo.
+
+2006-02-14  Chia-I Wu  <[email protected]>
+
 	* src/sfnt/ttmtx.c (tt_face_load_hhea, tt_face_load_hmtx): Simply
 	return error if table is missing.
 	Check table length in non-FT_OPTIMIZE_MEMORY'ed `tt_face_load_hmtx'.
--- a/src/sfnt/ttmtx.c
+++ b/src/sfnt/ttmtx.c
@@ -442,7 +442,7 @@
     FT_UShort       k      = header->number_Of_HMetrics;
 
 
-    if ( k == 0 || k >= (FT_UInt)face->max_profile.numGlyphs )
+    if ( k == 0 || gindex >= (FT_UInt)face->max_profile.numGlyphs )
     {
       *abearing = *aadvance = 0;
       return SFNT_Err_Ok;