* Option fonts.enableGhostscriptFonts to make the Ghostscript fonts

available to X11 apps.

svn path=/nixos/trunk/; revision=9401
This commit is contained in:
Eelco Dolstra 2007-10-03 15:44:30 +00:00
parent 48acdef3c9
commit 94b7b9377c
2 changed files with 19 additions and 6 deletions

View File

@ -1,4 +1,4 @@
{pkgs , config}: {pkgs, config}:
[ [
# - the user's .fonts directory # - the user's .fonts directory
@ -18,6 +18,8 @@
pkgs.xorg.fontbh100dpi pkgs.xorg.fontbh100dpi
pkgs.xorg.fontmiscmisc pkgs.xorg.fontmiscmisc
pkgs.xorg.fontcursormisc pkgs.xorg.fontcursormisc
] ++ ]
((config.get ["fonts" "extraFonts"]) pkgs)
++ pkgs.lib.optional (config.get ["fonts" "enableGhostscriptFonts"]) "${pkgs.ghostscript}/share/ghostscript/fonts"
++ ((config.get ["fonts" "extraFonts"]) pkgs)

View File

@ -1109,17 +1109,28 @@ root ALL=(ALL) SETENV: ALL
{ {
name = ["fonts" "enableFontConfig"]; name = ["fonts" "enableFontConfig"]; # !!! should be enableFontconfig
default = true; default = true;
description = " description = "
If enabled, a fontconfig configuration file will be built If enabled, a Fontconfig configuration file will be built
pointing to a set of default fonts. If you don't care about pointing to a set of default fonts. If you don't care about
running X11 applications or any other program that uses running X11 applications or any other program that uses
fontconfig, you can turn this option off and prevent a Fontconfig, you can turn this option off and prevent a
dependency on all those fonts. dependency on all those fonts.
"; ";
} }
{
name = ["fonts" "enableGhostscriptFonts"];
default = false;
description = "
Whether to add the fonts provided by Ghostscript (such as
various URW fonts and the Base-14 Postscript fonts) to the
list of system fonts, making them available to X11
applications.
";
}
{ {
name = ["fonts" "extraFonts"]; name = ["fonts" "extraFonts"];
default = pkgs:[]; default = pkgs:[];