code: function() {
        var canvasEl = fabric.document.createElement('canvas');
  
        if (!canvasEl.getContext && typeof G_vmlCanvasManager != 'undefined') {
          G_vmlCanvasManager.initElement(canvasEl);
        }
  
        this._render(canvasEl.getContext('2d'));
      }
docs: Renders text object on offscreen canvas, so that it would get dimensions
  @private
  @method _initDimensions