mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-06 09:02:50 +00:00
13 lines
230 B
Plaintext
13 lines
230 B
Plaintext
|
|
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;
|
|
};
|