diff --git a/modes/canvas/text.js b/modes/canvas/text.js index 5381f07..9606987 100644 --- a/modes/canvas/text.js +++ b/modes/canvas/text.js @@ -23,8 +23,11 @@ module.exports = Class(Base, { (font.fontWeight || font['font-weight'] || '') + ' ' + em + 'px ' + (font.fontFamily || font['font-family'] || 'Arial'); - } else { + } else if(this._font) { font = this._font; + } else { + em = 12; + font = '12px Arial'; } var lines = text && text.split(/\r?\n/);