summaryrefslogtreecommitdiff
path: root/java/jdk13/files/patch-j2sdk1.3.1-font-fontpath.c
blob: 625ddf294d3a4e0242010a90d5f308dea1f619d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$FreeBSD$

--- ../src/solaris/native/sun/awt/font/fontpath.c.orig	Fri Dec  8 10:52:19 2006
+++ ../src/solaris/native/sun/awt/font/fontpath.c	Fri Dec  8 10:54:02 2006
@@ -426,7 +426,7 @@
 JNIEXPORT jstring JNICALL Java_sun_awt_font_NativeFontWrapper_getFontPath(JNIEnv *env, jclass obj, jboolean noType1)
 {
 #ifndef __solaris__
-   char *ptr   = "/usr/X11R6/lib/X11/fonts/Type1:/usr/X11R6/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/tt";
+   char *ptr   = "%%X11BASE%%/lib/X11/fonts/Type1:%%X11BASE%%/lib/X11/fonts/TrueType:%%X11BASE%%/lib/X11/fonts/tt";
 #else
     char *ptr   = getSolarisFontLocations((int) (noType1==JNI_TRUE));
 #endif