code: function setTextStyles(element, item, fontObj) {
  
      var style = element.style;
      style.fontSize = item.fontSize + 'px';
      style.direction = item.fontDirection < 0 ? 'rtl': 'ltr';
  
      if (!fontObj) {
        return;
      }
  
      style.fontWeight = fontObj.black ?
        (fontObj.bold ? 'bolder' : 'bold') :
        (fontObj.bold ? 'bold' : 'normal');
      style.fontStyle = fontObj.italic ? 'italic' : 'normal';
  
      var fontName = fontObj.loadedName;
      var fontFamily = fontName ? '"' + fontName + '", ' : '';
      // Use a reasonable default font if the font doesn't specify a fallback
      var fallbackName = fontObj.fallbackName || 'Helvetica, sans-serif';
      style.fontFamily = fontFamily + fallbackName;
    }
docs: TODO(mack): This dupes some of the logic in CanvasGraphics.setFont()