jaywcjlove / svgtofont

Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font.
https://jaywcjlove.github.io/svgtofont
MIT License
515 stars 81 forks source link

All icons have the same encodedCode and unicode value #207

Closed oikalyptus closed 1 year ago

oikalyptus commented 1 year ago

Starting with version 3.25.2, all icons have the same encodedCode and unicode value in the generated info.json. This leads to an unusable icon font.

I am generating the icon font like this:

import svgtofont from 'svgtofont'

await svgtofont({
  css: false,
  dist: './dist',
  emptyDist: true,
  fontName: 'icon-font',
  generateInfoData: true,
  src: './source',
  svgicons2svgfont: {
    fontHeight: 1000,
    normalize: true,
  },
})
jaywcjlove commented 1 year ago

@oikalyptus Update to v3.25.4 to try.

schmidt-oliver commented 1 year ago

Can be closed.