Hi,
attached patches add c:\windows\fonts to  DEFAULT_FONTPATH.
c:\windows\fonts is the standard for Windows 98 and windows XP.
Maybe a more sophisticated solution would use getenv("windir")?

Regards
Friedhelm

Index: gd.h
===================================================================
RCS file: /repository/php-src/ext/gd/libgd/gd.h,v
retrieving revision 1.7.2.8
diff -u -u -r1.7.2.8 gd.h
--- gd.h        29 Mar 2004 18:21:00 -0000      1.7.2.8
+++ gd.h        12 Apr 2004 18:34:30 -0000
@@ -11,7 +11,7 @@
 #define PATHSEPARATOR ":"
 #else
 /* default fontpath for windows systems */
-#define DEFAULT_FONTPATH "c:\\winnt\\fonts;."
+#define DEFAULT_FONTPATH "c:\\winnt\\fonts;c:\\windows\\fonts;."
 #define PATHSEPARATOR ";"
 #endif
Index: gd.h
===================================================================
RCS file: /repository/php-src/ext/gd/libgd/gd.h,v
retrieving revision 1.21
diff -u -u -r1.21 gd.h
--- gd.h        29 Mar 2004 18:20:33 -0000      1.21
+++ gd.h        12 Apr 2004 18:31:05 -0000
@@ -11,7 +11,7 @@
 #define PATHSEPARATOR ":"
 #else
 /* default fontpath for windows systems */
-#define DEFAULT_FONTPATH "c:\\winnt\\fonts;."
+#define DEFAULT_FONTPATH "c:\\winnt\\fonts;c:\\windows\fonts;."
 #define PATHSEPARATOR ";"
 #endif

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to