cvs: gd /libgd ISSUES gdft.c

From: Date: Wed, 03 Jan 2007 21:04:00 +0000
Subject: cvs: gd /libgd ISSUES gdft.c
Groups: php.gd.cvs 
Request: Send a blank email to php-gd-cvs+get-55@lists.php.net to get a copy of this message
pajoye Wed Jan 3 21:04:00 2007 UTC Modified files: /gd/libgd gdft.c ISSUES Log: #28, Fixed gdImageStringFTEx when called with an empty string Initialize the bounding box variables to zero (Kevin Scaldeferri) http://cvs.php.net/viewvc.cgi/gd/libgd/gdft.c?r1=1.26&r2=1.27&diff_format=u Index: gd/libgd/gdft.c diff -u gd/libgd/gdft.c:1.26 gd/libgd/gdft.c:1.27 --- gd/libgd/gdft.c:1.26 Wed Jan 3 20:56:49 2007 +++ gd/libgd/gdft.c Wed Jan 3 21:04:00 2007 @@ -843,7 +843,7 @@ FT_Matrix matrix; FT_Vector penf, oldpenf, delta, total_min = {0,0}, total_max = {0,0}, glyph_min, glyph_max; FT_Face face; - FT_CharMap charmap; + FT_CharMap charmap = NULL; FT_Glyph image; FT_GlyphSlot slot; FT_Error err; @@ -916,6 +916,12 @@ face = font->face; /* shortcut */ slot = face->glyph; /* shortcut */ + if (brect) + { + total_min.x = total_min.y = 0; + total_max.x = total_max.y = 0; + } + /* * Added hdpi and vdpi to support images at non-screen resolutions, i.e. 300 dpi TIFF, * or 100h x 50v dpi FAX format. 2.0.23. http://cvs.php.net/viewvc.cgi/gd/libgd/ISSUES?r1=1.24&r2=1.25&diff_format=u Index: gd/libgd/ISSUES diff -u gd/libgd/ISSUES:1.24 gd/libgd/ISSUES:1.25 --- gd/libgd/ISSUES:1.24 Wed Jan 3 20:56:49 2007 +++ gd/libgd/ISSUES Wed Jan 3 21:04:00 2007 @@ -52,3 +52,5 @@ #26, gdFontCacheSetup returns error when gdCacheCreate fails #27, Added sanity checks for possible failures in fontFetch and tweenColorFetch +#28, Fixed gdImageStringFTEx when called with an empty string + Initialize the bounding box variables to zero (Kevin Scaldeferri)

« previous php.gd.cvs (#55) next »