diff --git a/configure.ac b/configure.ac index dfa2b548f..96439c7de 100644 --- a/configure.ac +++ b/configure.ac @@ -836,6 +836,7 @@ fi if test "x$BUILTIN_FONTS" = xyes; then AC_DEFINE(BUILTIN_FONTS, 1, [Use only built-in fonts]) AC_DEFINE(NOFONTSERVERACCESS, 1, [Avoid using a font server]) + FONTPATH="built-ins" fi if test "x$XCALIBRATE" = xyes && test "$KDRIVE" = yes; then diff --git a/dix/main.c b/dix/main.c index 48d16b123..c5d3783c8 100644 --- a/dix/main.c +++ b/dix/main.c @@ -399,14 +399,10 @@ main(int argc, char *argv[], char *envp[]) FatalError("failed to initialize core devices"); InitFonts(); -#ifdef BUILTIN_FONTS - defaultFontPath = "built-ins"; -#else if (loadableFonts) { SetFontPath(0, 0, (unsigned char *)defaultFontPath, &error); - } else -#endif - { + } + else { if (SetDefaultFontPath(defaultFontPath) != Success) ErrorF("failed to set default font path '%s'", defaultFontPath); @@ -414,6 +410,7 @@ main(int argc, char *argv[], char *envp[]) if (!SetDefaultFont(defaultTextFont)) { FatalError("could not open default font '%s'", defaultTextFont); } + #ifdef NULL_ROOT_CURSOR cm.width = 0; cm.height = 0; @@ -430,6 +427,7 @@ main(int argc, char *argv[], char *envp[]) defaultCursorFont); } #endif + #ifdef DPMSExtension /* check all screens, looking for DPMS Capabilities */ DPMSCapableFlag = DPMSSupported(); diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index 666a42449..bf7dac6da 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -982,7 +982,9 @@ OsVendorInit() signal(SIGCHLD, SIG_DFL); /* Need to wait for child processes */ #endif OsDelayInitColors = TRUE; +#ifndef BUILTIN_FONTS loadableFonts = TRUE; +#endif if (!beenHere) xf86LogInit();