Ignore Xcode project user data, added fontinfo package

This commit is contained in:
Aparajita Fishman committed 2011-03-25 23:38:49 -04:00
1 parent 30484e04b9
commit b54ea6e8ac
11 files changed
+438 -3

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
var OS = require("os");
exports.fontinfo = function(name, size)
{
var p = OS.popen(["fontinfo", "-n", name, size || 12]);
if (p.wait() === 0)
return JSON.parse(p.stdout.read());
else
return null;
}