code: function ttfobject2icon(ttf, options) {
  
      var glyfList = [];
  
      // glyf 信息
      var filtered = ttf.glyf.filter(function (g) {
          return g.name !== '.notdef'
              && g.name !== '.null'
              && g.name !== 'nonmarkingreturn'
              && g.unicode && g.unicode.length;
      });
  
      filtered.forEach(function (g) {
          glyfList.push({
              code: '&#x' + g.unicode[0].toString(16) + ';',
              codeName: listUnicode(g.unicode),
              name: g.name
          });
      });
  
      return {
          fontFamily: ttf.name.fontFamily || config.name.fontFamily,
          iconPrefix: options.iconPrefix || 'icon',
          glyfList: glyfList
      };
  
  }
docs: ttf数据结构转icon数据结构
  
  @param {ttfObject} ttf ttfObject对象
  @param {Object} options 选项
  @param {Object} options.metadata 字体相关的信息
  @param {Object} options.iconPrefix icon 前缀
  @return {Object} icon obj