code: function() {
                  var upFile = document.getElementById('upload-file');
                  upFile.addEventListener('change', onUpFileChange);
  
                  ajaxFile({
                      type: 'binary',
                      url: './test/tt0586m_.ttf',
                      onSuccess: function(binaryData) {
                          var ttfReader = new ttfreader({
                              //hinting: true,
                              subset: [65, 0x160, 0x161, 0x162]
                          });
                          var ttfData = ttfReader.read(binaryData);
  
                          console.log(ttfData);
  
                          var ttf = new TTF(ttfData);
  
                      },
                      onError: function() {
                          console.error('error read file');
                      }
                  });
  
  
              }
docs: 初始化