[patch] gd.h windows font path
| From: | Friedhelm Betz | Date: | Mon, 12 Apr 2004 20:28:12 +0000 |
| Subject: | [patch] gd.h windows font path | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-9088@lists.php.net to get a copy of this message | ||
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
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