jaywcjlove / svgtofont

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

use in cmake #196

Open mmjvox opened 1 year ago

mmjvox commented 1 year ago

Hi thanks for your great project. Setting it up is effortless.

I`m using cmake for most of my projects. Earlier, I was using svgtofont in command line, manually. After a while i wrote a few lines for cmake to automate the font generation for each build. Now i made a simple cmake package for svgtofont that allows everyone to use it easily. Would you like to add this to your project? Or is the idea not a good idea and it is better to create a separate repo?

jaywcjlove commented 1 year ago

@mmjvox I think it is very good to have one more option without affecting the previous use.

I don't know much about cmake and hope to add usage documentation.

mmjvox commented 1 year ago

Usually, most libraries have a configuration file and cmake finds the libraries according to that.

These files are copied to a specific path after installing each library.

I wrote one of that files for svgtofont, then cmake can use svgtofont whenever needed.

You can put my file next to other files in this repo, We should also add in the documents that cmake users must download the cmake file separately after installing svgtofont. So the user must copy that file in the specific path manually after svftofont installation done.

Do you allow me to add one option to convert manual steps to automatic? for exapmle something like this:

svgtofont --config-for-cmake

jaywcjlove commented 1 year ago

I see no problem with this feature. @mmjvox