title: Unable to set font on Node.js using Fabric.js
body: <p>I am using fabric to create image but its says "undefined is not a function".</p>
  
  <p>I am not able to set the font.</p>
  
  <pre><code> var fs = require('fs'),
   fabric = require('fabric').fabric,
   canvas = fabric.createCanvasForNode(300, 250);
  
   var font = new canvas.Font('Ubuntu', __dirname + '/fonts/Ubuntu-Regular.ttf');
  </code></pre>
  
  <p>canvas.Font is undefined.</p>
  
  <p>fabric@1.4.0, canvas@1.0.4</p>