canvas2svg icon indicating copy to clipboard operation
canvas2svg copied to clipboard

How to render text as vector?

Open FrankDaze opened this issue 3 years ago • 3 comments

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

FrankDaze avatar Jul 28 '22 08:07 FrankDaze

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

murkle avatar Jul 28 '22 08:07 murkle

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

FrankDaze avatar Jul 28 '22 09:07 FrankDaze

Yes, it "just works"

murkle avatar Jul 28 '22 09:07 murkle