code: function resolveGlyf(font) {
  
      var codes = font.cmap;
      var glyf = font.CFF.glyf;
  
      // unicode
      Object.keys(codes).forEach(function (c) {
          var i = codes[c];
          if (!glyf[i].unicode) {
              glyf[i].unicode = [];
          }
          glyf[i].unicode.push(+c);
      });
  
      // leftSideBearing
      font.hmtx.forEach(function (item, i) {
          glyf[i].advanceWidth = glyf[i].advanceWidth || item.advanceWidth || 0;
          glyf[i].leftSideBearing = item.leftSideBearing;
      });
  
      font.glyf = glyf;
  }
docs: 关联glyf相关的信息
  @param {Object} font font对象