code: function () {
  
                  $.ajax({
                      url: './test/fonteditor.svg',
                      dataType: 'text'
                  }).done(function(data) {
  
                      var ttfObject = svg2ttfobject(data);
                      var writer = new TTFWriter();
  
                      var ttfBuffer = writer.write(ttfObject);
                      var base64str = ttf2base64(ttfBuffer);
  
                      var saveBtn = $('.saveas');
                      saveBtn.attr('href', base64str);
                      saveBtn.attr('download', 'save.ttf');
  
  
                      console.log(ttfObject);
                  });
  
              }
docs: 初始化