Removed check for fontinfo, it will be part of the cappuccino package

This commit is contained in:
Aparajita Fishman committed 2011-03-11 09:04:11 -05:00
1 parent 522d4dcb2b
commit 3a79e82ce8
1 file changed
-17
-17
View File
@@ -130,9 +130,6 @@ function main(args)
if (!FILE.exists(inputFile))
fail("No such file: " + FILE.canonical(inputFile));
if (!haveFontInfo())
fail("The fontinfo package is not installed, please install it.");
var configPath = setSystemFontAndSize(options.configFile || "", inputFile),
themeName = "",
themeDir = options.themeDir || "";
@@ -270,20 +267,6 @@ function loadTheme(themeName, themeDir)
return theme;
}
function haveFontInfo()
{
try
{
var fontinfo = require("fontinfo").fontinfo;
}
catch (e)
{
return false;
}
return true;
}
function setSystemFontAndSize(configFile, inputFile)
{
var configPath = null;