--- old/src/solaris/native/sun/awt/fontpath.c 2013-10-22 20:57:14.000000000 -0700 +++ new/src/solaris/native/sun/awt/fontpath.c 2013-10-22 20:57:14.000000000 -0700 @@ -23,7 +23,7 @@ * questions. */ -#if defined(__linux__) || defined(MACOSX) +#if defined(__linux__) #include #endif /* __linux__ */ #include @@ -59,26 +59,12 @@ extern Display *awt_display; #endif /* !HEADLESS */ -#ifdef MACOSX - -// -// XXXDARWIN: Hard-code the path to Apple's fontconfig, as it is -// not included in the dyld search path by default, and 10.4 -// does not support -rpath. -// -// This ignores the build time setting of ALT_FREETYPE_LIB_PATH, -// and should be replaced with -rpath/@rpath support on 10.5 or later, -// or via support for a the FREETYPE_LIB_PATH define. -#define FONTCONFIG_DLL_VERSIONED X11_PATH "/lib/" VERSIONED_JNI_LIB_NAME("fontconfig", "1") -#define FONTCONFIG_DLL X11_PATH "/lib/" JNI_LIB_NAME("fontconfig") -#else #define FONTCONFIG_DLL_VERSIONED VERSIONED_JNI_LIB_NAME("fontconfig", "1") #define FONTCONFIG_DLL JNI_LIB_NAME("fontconfig") -#endif #define MAXFDIRS 512 /* Max number of directories that contain fonts */ -#if !defined(__linux__) && !defined(MACOSX) +#if !defined(__linux__) /* * This can be set in the makefile to "/usr/X11" if so desired. */ @@ -128,22 +114,6 @@ NULL, /* terminates the list */ }; -#elif MACOSX -static char *full_MACOSX_X11FontPath[] = { - X11_PATH "/lib/X11/fonts/TrueType", - X11_PATH "/lib/X11/fonts/truetype", - X11_PATH "/lib/X11/fonts/tt", - X11_PATH "/lib/X11/fonts/TTF", - X11_PATH "/lib/X11/fonts/OTF", - PACKAGE_PATH "/share/fonts/TrueType", - PACKAGE_PATH "/share/fonts/truetype", - PACKAGE_PATH "/share/fonts/tt", - PACKAGE_PATH "/share/fonts/TTF", - PACKAGE_PATH "/share/fonts/OTF", - X11_PATH "/lib/X11/fonts/Type1", - PACKAGE_PATH "/share/fonts/Type1", - NULL, /* terminates the list */ -}; #else /* __linux */ /* All the known interesting locations we have discovered on * various flavors of Linux @@ -400,7 +370,7 @@ #endif /* !HEADLESS */ -#if defined(__linux__) || defined(MACOSX) +#if defined(__linux__) /* from awt_LoadLibrary.c */ JNIEXPORT jboolean JNICALL AWTIsHeadless(); #endif @@ -527,8 +497,6 @@ #if defined(__linux__) knowndirs = fullLinuxFontPath; -#elif defined(MACOSX) - knowndirs = full_MACOSX_X11FontPath; #else /* IF SOLARIS */ knowndirs = fullSolarisFontPath; #endif @@ -539,7 +507,7 @@ * be initialised. */ #ifndef HEADLESS -#if defined(__linux__) || defined(MACOSX) +#if defined(__linux__) /* There's no headless build on linux ... */ if (!AWTIsHeadless()) { /* .. so need to call a function to check */ #endif @@ -555,7 +523,7 @@ x11dirs = getX11FontPath(); } AWT_UNLOCK(); -#if defined(__linux__) || defined(MACOSX) +#if defined(__linux__) } #endif #endif /* !HEADLESS */