mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-02 03:08:22 +00:00
Removed check for fontinfo, it will be part of the cappuccino package
This commit is contained in:
1 parent
522d4dcb2b
commit
3a79e82ce8
1 file changed
-17
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user