gliffy / canvas2svg

Translates HTML5 Canvas draw commands to SVG
MIT License
691 stars 157 forks source link

How to render text as vector? #86

Open FrankDaze opened 2 years ago

FrankDaze commented 2 years ago

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 commented 2 years ago

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

FrankDaze commented 2 years ago

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

murkle commented 2 years ago

Yes, it "just works"