shithub: freetype+ttf2subf

Download patch

ref: d112cf099b378274da0552e180eb8c6cbd41ea89
parent: 3d92f08bc5d1eb187a35d4619a14f5d2feb8b956
author: Werner Lemberg <[email protected]>
date: Tue Mar 6 07:06:56 EST 2007

formatting, copyright years

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,15 +8,18 @@
 
 2007-03-05  David Turner  <[email protected]>
 
-	* src/base/ftinit.c (FT_Init_FreeType): fixed a small memory leak
-	when FT_Init_FreeType fails for some reason
+	* src/base/ftinit.c (FT_Init_FreeType): Fix a small memory leak in
+	case FT_Init_FreeType fails for some reason.  Problem reported by
+	Maximilian Schwerin <[email protected]>.
 
-	* src/truetype/ttobs.c (tt_size_init_bytecode): bugfix, we need to
-	clear the x_ppem and y_ppem fields of the TT_Size.metrics structure,
-	note those of TT_Size.root.metrics. duh !!
+	* src/truetype/ttobs.c (tt_size_init_bytecode): Clear the `x_ppem'
+	and `y_ppem' fields of the `TT_Size.metrics' structure, not those of
+	`TT_Size.root.metrics'.  Problem reported by Daniel Glöckner
+	<[email protected]>.
 
-	* src/type1/t1afm.c (T1_Read_PFM): bug fix: read the kerning values
-	as 16-bit *signed* values, not unsigned ones.
+	* src/type1/t1afm.c (T1_Read_PFM): Read kerning values as 16-bit
+	signed values, not unsigned ones.  Problem reported by Johannes
+	Walther <[email protected]>.
 
 2007-02-21  David Turner  <[email protected]>
 
--- a/src/base/ftinit.c
+++ b/src/base/ftinit.c
@@ -4,7 +4,7 @@
 /*                                                                         */
 /*    FreeType initialization layer (body).                                */
 /*                                                                         */
-/*  Copyright 1996-2001, 2002, 2005 by                                     */
+/*  Copyright 1996-2001, 2002, 2005, 2007 by                               */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
 /*                                                                         */
 /*  This file is part of the FreeType project, and may only be used,       */
@@ -124,10 +124,8 @@
     /* default drivers.                                        */
 
     error = FT_New_Library( memory, alibrary );
-    if (error)
-    {
-      FT_Done_Memory(memory);
-    }
+    if ( error )
+      FT_Done_Memory( memory );
     else
     {
       (*alibrary)->version_major = FREETYPE_MAJOR;