File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,18 @@ extern "C" {
7
7
8
8
#include "php_compat.h"
9
9
10
- #ifndef WIN32
11
- /* default fontpath for unix systems */
12
- #define DEFAULT_FONTPATH "/usr/X11R6/lib/X11/fonts/TrueType:/usr/X11R6 /lib/X11 /fonts/truetype:/usr/X11R6/lib/X11/fonts/TTF:/usr/share/fonts/TrueType:/usr/share/fonts/truetype:/usr/openwin/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/Type1: ."
13
- #define PATHSEPARATOR ": "
14
- #else
10
+ #ifdef NETWARE
11
+ /* default fontpath for netware systems */
12
+ #define DEFAULT_FONTPATH "sys:/java/nwgfx /lib/x11 /fonts/ttf; ."
13
+ #define PATHSEPARATOR "; "
14
+ #elif WIN32
15
15
/* default fontpath for windows systems */
16
16
#define DEFAULT_FONTPATH "c:\\winnt\\fonts;c:\\windows\\fonts;."
17
17
#define PATHSEPARATOR ";"
18
+ #else
19
+ /* default fontpath for unix systems */
20
+ #define DEFAULT_FONTPATH "/usr/X11R6/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/truetype:/usr/X11R6/lib/X11/fonts/TTF:/usr/share/fonts/TrueType:/usr/share/fonts/truetype:/usr/openwin/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/Type1:."
21
+ #define PATHSEPARATOR ":"
18
22
#endif
19
23
20
24
/* gd.h: declarations file for the graphic-draw module.
Original file line number Diff line number Diff line change @@ -377,7 +377,11 @@ static void *fontFetch (char **error, void *key)
377
377
path = gdEstrdup (fontsearchpath );
378
378
379
379
/* if name is an absolute filename then test directly */
380
+ #ifdef NETWARE
381
+ if (* name == '/' || (name [0 ] != 0 && strstr (name , ":/" ))) {
382
+ #else
380
383
if (* name == '/' || (name [0 ] != 0 && name [1 ] == ':' && (name [2 ] == '/' || name [2 ] == '\\' ))) {
384
+ #endif
381
385
snprintf (fullname , sizeof (fullname ) - 1 , "%s" , name );
382
386
if (access (fullname , R_OK ) == 0 ) {
383
387
font_found ++ ;
You can’t perform that action at this time.
0 commit comments