|
@@ -1,7 +1,6 @@
|
1
|
1
|
var fs = require("fs"),
|
2
|
2
|
path = require("path"),
|
3
|
3
|
mkdirp = require("mkdirp"),
|
4
|
|
- Canvas = require("canvas"),
|
5
|
4
|
_ = require("underscore");
|
6
|
5
|
|
7
|
6
|
module.exports = function(settings) {
|
|
@@ -63,7 +62,6 @@ module.exports = function(settings) {
|
63
|
62
|
|
64
|
63
|
try {
|
65
|
64
|
fs.accessSync(font.file);
|
66
|
|
- Canvas.registerFont(font.file, _.pick(font, "family", "weight", "style"));
|
67
|
65
|
} catch(e) {
|
68
|
66
|
return console.warn("Font file " + font.file + " does not exist or is not readable.");
|
69
|
67
|
}
|