Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plans for programattic control? #46

Open
Paul-Hebert opened this issue Jun 25, 2023 · 2 comments
Open

Plans for programattic control? #46

Paul-Hebert opened this issue Jun 25, 2023 · 2 comments

Comments

@Paul-Hebert
Copy link

Hey, this looks really neat!

I enjoy using JS to create generative SVG art work, and it would be great if I could use something like this to programatically insert text.

The Vue GUI looks nice but I'm curious if you have any plans to add a JS API? It would be awesome if I could import this from npm and then use it in my apps.

If not, any tips for where to look in the source code if I wanted to fork this?

Thanks!

@jvolker
Copy link
Owner

jvolker commented Jun 25, 2023

Thanks. Yes, adding some sort of API is still my plan, but I never found the time to do it. Essentially, the basics are in here: https://github.com/jvolker/single-line-font-renderer/blob/master/src/lib/svgFontRenderer.js which is adapted from https://github.com/techninja/hersheytextjs/blob/master/lib/hersheytext.js.

@Paul-Hebert
Copy link
Author

Thanks! If I found some time to dig into this would you be open to a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants