Fonts: Fix builtin fonts
Make sure the font path is always 'built-ins' when we use built-in fonts, rather than having it as a fixed path for a while, then clobbering it halfway through startup.
This commit is contained in:
parent
9ac7e8a559
commit
4d3379d418
|
@ -836,6 +836,7 @@ fi
|
||||||
if test "x$BUILTIN_FONTS" = xyes; then
|
if test "x$BUILTIN_FONTS" = xyes; then
|
||||||
AC_DEFINE(BUILTIN_FONTS, 1, [Use only built-in fonts])
|
AC_DEFINE(BUILTIN_FONTS, 1, [Use only built-in fonts])
|
||||||
AC_DEFINE(NOFONTSERVERACCESS, 1, [Avoid using a font server])
|
AC_DEFINE(NOFONTSERVERACCESS, 1, [Avoid using a font server])
|
||||||
|
FONTPATH="built-ins"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$XCALIBRATE" = xyes && test "$KDRIVE" = yes; then
|
if test "x$XCALIBRATE" = xyes && test "$KDRIVE" = yes; then
|
||||||
|
|
10
dix/main.c
10
dix/main.c
|
@ -399,14 +399,10 @@ main(int argc, char *argv[], char *envp[])
|
||||||
FatalError("failed to initialize core devices");
|
FatalError("failed to initialize core devices");
|
||||||
|
|
||||||
InitFonts();
|
InitFonts();
|
||||||
#ifdef BUILTIN_FONTS
|
|
||||||
defaultFontPath = "built-ins";
|
|
||||||
#else
|
|
||||||
if (loadableFonts) {
|
if (loadableFonts) {
|
||||||
SetFontPath(0, 0, (unsigned char *)defaultFontPath, &error);
|
SetFontPath(0, 0, (unsigned char *)defaultFontPath, &error);
|
||||||
} else
|
}
|
||||||
#endif
|
else {
|
||||||
{
|
|
||||||
if (SetDefaultFontPath(defaultFontPath) != Success)
|
if (SetDefaultFontPath(defaultFontPath) != Success)
|
||||||
ErrorF("failed to set default font path '%s'",
|
ErrorF("failed to set default font path '%s'",
|
||||||
defaultFontPath);
|
defaultFontPath);
|
||||||
|
@ -414,6 +410,7 @@ main(int argc, char *argv[], char *envp[])
|
||||||
if (!SetDefaultFont(defaultTextFont)) {
|
if (!SetDefaultFont(defaultTextFont)) {
|
||||||
FatalError("could not open default font '%s'", defaultTextFont);
|
FatalError("could not open default font '%s'", defaultTextFont);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef NULL_ROOT_CURSOR
|
#ifdef NULL_ROOT_CURSOR
|
||||||
cm.width = 0;
|
cm.width = 0;
|
||||||
cm.height = 0;
|
cm.height = 0;
|
||||||
|
@ -430,6 +427,7 @@ main(int argc, char *argv[], char *envp[])
|
||||||
defaultCursorFont);
|
defaultCursorFont);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DPMSExtension
|
#ifdef DPMSExtension
|
||||||
/* check all screens, looking for DPMS Capabilities */
|
/* check all screens, looking for DPMS Capabilities */
|
||||||
DPMSCapableFlag = DPMSSupported();
|
DPMSCapableFlag = DPMSSupported();
|
||||||
|
|
|
@ -982,7 +982,9 @@ OsVendorInit()
|
||||||
signal(SIGCHLD, SIG_DFL); /* Need to wait for child processes */
|
signal(SIGCHLD, SIG_DFL); /* Need to wait for child processes */
|
||||||
#endif
|
#endif
|
||||||
OsDelayInitColors = TRUE;
|
OsDelayInitColors = TRUE;
|
||||||
|
#ifndef BUILTIN_FONTS
|
||||||
loadableFonts = TRUE;
|
loadableFonts = TRUE;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!beenHere)
|
if (!beenHere)
|
||||||
xf86LogInit();
|
xf86LogInit();
|
||||||
|
|
Loading…
Reference in New Issue