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

How to render text as vector? #86

Open
FrankDaze opened this issue Jul 28, 2022 · 3 comments
Open

How to render text as vector? #86

FrankDaze opened this issue Jul 28, 2022 · 3 comments

Comments

@FrankDaze
Copy link

Hi,

I'm using your script inside my whiteboard tool to create a preview image and I plan to use it for exporting the screen as well.
But in my tool I use different custom fonts (usual on whiteboards). Is it possible to render the text to vector in the SVG? Otherwise I see in the exported SVG only text with a Times font instead the selected one.

Thanks in advance
Frank

@murkle
Copy link

murkle commented Jul 28, 2022

Yes, that's possible using https://opentype.js.org/

@FrankDaze
Copy link
Author

@murkle thanks for the info. That is supported in canvas2svg as well?

@murkle
Copy link

murkle commented Jul 28, 2022

Yes, it "just works"

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