mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-01 03:03:58 +00:00
add support for built-in fonts
Use --enable-builtin-fonts to only use built-in fonts, and avoid loading fonts.
This commit is contained in:
parent
0a2068d123
commit
ecfad74c48
4 changed files with 22 additions and 5 deletions
|
|
@ -403,9 +403,14 @@ 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 {
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
if (SetDefaultFontPath(defaultFontPath) != Success)
|
||||
ErrorF("failed to set default font path '%s'",
|
||||
defaultFontPath);
|
||||
|
|
|
|||
Loading…
Reference in a new issue