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:
Daniel Stone 2006-07-19 19:55:13 -04:00 • committed by Daniel Stone
commit ecfad74c48
4 changed files with 22 additions and 5 deletions

View file

@ -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);