iliaa           Sun May  9 13:34:02 2004 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src    NEWS 
    /php-src/ext/gd     gd.c 
    /php-src/ext/gd/libgd       gdft.c 
  Log:
  MFH:
  Upgrade bundled GD library to 2.0.23.
  Fixed bug #28175 (build problem for people using FreeType 2.1.0-2.1.2).
  
  
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.654&r2=1.1247.2.655&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.654 php-src/NEWS:1.1247.2.655
--- php-src/NEWS:1.1247.2.654   Sat May  8 02:01:11 2004
+++ php-src/NEWS        Sun May  9 13:34:01 2004
@@ -1,6 +1,7 @@
 PHP 4                                                                      NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2004, Version 4.3.7
+- Upgraded bundled GD library to 2.0.23. (Ilia)
 - Fixed possible crash inside pg_copy_(to|from) function if delimiter is more
   then 1 character long. (Ilia)
 - Fixed handling of return values from storred procedures in mssql_execute()
@@ -12,6 +13,8 @@
   (Ilia)
 - Fixed bug #28196 (missing error constants in cURL extension). (Ilia)
 - Fixed bug #28187 (parse_url() not handling embedded IPv6 in URLs). (Sara)
+- Fixed bug #28175 (build problem for people using FreeType 2.1.0-2.1.2).
+  (Ilia)
 - Fixed bug #28147 (Crash with drawing anti-aliased lines). (Derick)
 - Fixed bug #28112 (sqlite_query() crashing apache on malformed query). (Ilia,
   Marcus)
http://cvs.php.net/diff.php/php-src/ext/gd/gd.c?r1=1.221.2.40&r2=1.221.2.41&ty=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.221.2.40 php-src/ext/gd/gd.c:1.221.2.41
--- php-src/ext/gd/gd.c:1.221.2.40      Wed Apr  7 18:31:29 2004
+++ php-src/ext/gd/gd.c Sun May  9 13:34:01 2004
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: gd.c,v 1.221.2.40 2004/04/07 22:31:29 edink Exp $ */
+/* $Id: gd.c,v 1.221.2.41 2004/05/09 17:34:01 iliaa Exp $ */
 
 /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, 
    Cold Spring Harbor Labs. */
@@ -390,7 +390,7 @@
 /* }}} */
 
 #if HAVE_GD_BUNDLED
-#define PHP_GD_VERSION_STRING "bundled (2.0.22 compatible)"
+#define PHP_GD_VERSION_STRING "bundled (2.0.23 compatible)"
 #elif HAVE_LIBGD20
 #define PHP_GD_VERSION_STRING "2.0 or higher"
 #elif HAVE_GDIMAGECOLORRESOLVE
http://cvs.php.net/diff.php/php-src/ext/gd/libgd/gdft.c?r1=1.11.2.16&r2=1.11.2.17&ty=u
Index: php-src/ext/gd/libgd/gdft.c
diff -u php-src/ext/gd/libgd/gdft.c:1.11.2.16 php-src/ext/gd/libgd/gdft.c:1.11.2.17
--- php-src/ext/gd/libgd/gdft.c:1.11.2.16       Mon Mar 29 13:21:00 2004
+++ php-src/ext/gd/libgd/gdft.c Sun May  9 13:34:02 2004
@@ -473,7 +473,7 @@
                encoding = charmap->encoding_id;
 
 /* EAM DEBUG - Newer versions of libfree2 make it easier by defining encodings */
-#if (defined(FREETYPE_MAJOR) && (FREETYPE_MAJOR >=2 ) && (FREETYPE_MINOR >= 1))
+#if (defined(FREETYPE_MAJOR) && ((FREETYPE_MAJOR == 2 && ((FREETYPE_MINOR == 1 && 
FREETYPE_PATCH >= 3) || FREETYPE_MINOR > 1) || FREETYPE_MAJOR > 2)))
        if (charmap->encoding == FT_ENCODING_MS_SYMBOL
                || charmap->encoding == FT_ENCODING_ADOBE_CUSTOM
                || charmap->encoding == FT_ENCODING_ADOBE_STANDARD) {
@@ -482,7 +482,7 @@
                a->face->charmap = charmap;
                return (void *)a;
        }
-#endif /* Freetype 2.1 or better */
+#endif /* Freetype 2.1.3 or better */
 /* EAM DEBUG */
 
                if ((platform == 3 && encoding == 1)            /* Windows Unicode */
@@ -843,6 +843,8 @@
        *   colorindexes.          -- 27.06.2001 <[EMAIL PROTECTED]>
        */
        gdCache_head_t  *tc_cache;
+       /* Tuneable horizontal and vertical resolution in dots per inch */
+       int hdpi, vdpi;
 
        if (strex && ((strex->flags & gdFTEX_LINESPACE) == gdFTEX_LINESPACE)) {
                linespace = strex->linespacing;
@@ -872,7 +874,19 @@
        face = font->face;              /* shortcut */
        slot = face->glyph;             /* shortcut */
 
-       if (FT_Set_Char_Size (face, 0, (FT_F26Dot6) (ptsize * 64), GD_RESOLUTION, 
GD_RESOLUTION)) {
+       /*
+        * 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.
+        * 2004/02/27 Mark Shackelford, [EMAIL PROTECTED]
+        */
+       hdpi = GD_RESOLUTION;
+       vdpi = GD_RESOLUTION;
+       if (strex && (strex->flags & gdFTEX_RESOLUTION)) {
+               hdpi = strex->hdpi;
+               vdpi = strex->vdpi;
+       }
+
+       if (FT_Set_Char_Size(face, 0, (FT_F26Dot6) (ptsize * 64), hdpi, vdpi)) {
                gdCacheDelete(tc_cache);
                gdMutexUnlock(gdFontCacheMutex);
                return "Could not set character size";



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to