diff -urN xc.old/programs/Xserver/hw/xfree86/xf86config/Imakefile xc/programs/Xserver/hw/xfree86/xf86config/Imakefile --- xc.old/programs/Xserver/hw/xfree86/xf86config/Imakefile 2004-08-13 16:57:38.000000000 -0700 +++ xc/programs/Xserver/hw/xfree86/xf86config/Imakefile 2004-08-21 02:29:25.000000000 -0700 @@ -49,6 +49,7 @@ -DXDOCDIR=\"$(DOCDIR)\" $(SITE_FONT_PATH) \ -DFILEMANSUFFIX=\"$(FILEMANSUFFIX)\" \ -DXVERSIONSTRING=\"$(XVERSIONSTRING)\" \ + -DXFONTDIR=\"$(FONTDIR)\" \ $(VENDOR_DEFINES) $(KEYBOARD_DEFS) $(FONT_MODULE_DEFS) diff -urN xc.old/programs/Xserver/hw/xfree86/xf86config/xorgconfig.c xc/programs/Xserver/hw/xfree86/xf86config/xorgconfig.c --- xc.old/programs/Xserver/hw/xfree86/xf86config/xorgconfig.c 2004-08-13 16:57:38.000000000 -0700 +++ xc/programs/Xserver/hw/xfree86/xf86config/xorgconfig.c 2004-08-21 01:08:43.000000000 -0700 @@ -90,7 +90,7 @@ * - Load "speedo" module. * - Ready to DRI. * - Load xtt module instead of freetype module. - * - Add font path "/fonts/TrueType/" and "/fonts/freefont/". + * - Add font path "/TrueType/" and "/freefont/". * Chisato Yamauchi(cyamauch@phyas.aichi-edu.ac.jp) */ /* $XConsortium: xf86config.c /main/21 1996/10/28 05:43:57 kaleb $ */ @@ -175,6 +175,11 @@ #else # define TREEROOTDOC TREEROOTLX "/doc" #endif +#ifdef XFONTDIR +# define TREEROOTFONT XFONTDIR +#else +# define TREEROOTFONT TREEROOTLX "/fonts" +#endif #define MODULEPATH TREEROOT "/lib/modules" #ifndef XCONFIGFILE @@ -1966,17 +1971,17 @@ static char *XF86Config_fontpaths[] = { -/* " FontPath \"" TREEROOTLX "/fonts/75dpi/\"\n"*/ - "/fonts/local/", - "/fonts/misc/", - "/fonts/75dpi/:unscaled", - "/fonts/100dpi/:unscaled", - "/fonts/Speedo/", - "/fonts/Type1/", - "/fonts/TrueType/", - "/fonts/freefont/", - "/fonts/75dpi/", - "/fonts/100dpi/", +/* " FontPath \"" TREEROOTFONT "/75dpi/\"\n"*/ + "/local/", + "/misc/", + "/75dpi/:unscaled", + "/100dpi/:unscaled", + "/Speedo/", + "/Type1/", + "/TrueType/", + "/freefont/", + "/75dpi/", + "/100dpi/", 0 /* end of fontpaths */ }; @@ -2505,7 +2510,7 @@ #endif for (i=0; XF86Config_fontpaths[i]; i++) { - strcpy(cur,TREEROOTLX); + strcpy(cur,TREEROOTFONT); strcat(cur,XF86Config_fontpaths[i]); /* remove a ':' */ colon = strchr(cur+2,':'); /* OS/2: C:/...:scaled */ @@ -2518,7 +2523,7 @@ hash = exists_dir(cur) ? "" : "#"; fprintf(f,"%s FontPath \"%s%s\"\n", hash, - TREEROOTLX, + TREEROOTFONT, XF86Config_fontpaths[i]); } }