mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-16 21:41:18 +00:00
Ignore Xcode project user data, added fontinfo package
This commit is contained in:
1 parent
30484e04b9
commit
b54ea6e8ac
11 files changed
+438
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user