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

svgtofont is returning...void? #213

Closed ericmorand closed 9 months ago

ericmorand commented 9 months ago

I'm testing svgtofont and I don't quite understand how the TypeScript/Javascript API is supposed to work: according to the type definition, svgtofont is a function that returns Promise<void>.

How am I expected to retrieve the built font if svgtofont doesn't return anything? Is this a bug in the type definition?

jaywcjlove commented 9 months ago

@ericmorand No API is provided. After the generation is completed, you can read it yourself based on the generated file.

If you need to provide what kind of API, you can make a request

ericmorand commented 9 months ago

Thanks a lot.