kennycason / kumo

Kumo - Java Word Cloud
http://kennycason.com/posts/2014-07-03-kumo-wordcloud.html
MIT License
617 stars 156 forks source link

export svg #38

Open linuxraudi opened 8 years ago

linuxraudi commented 8 years ago

Hi,

Is there a way to write to svg (or any other vector graphic)?

Andreas

kennycason commented 8 years ago

I currently don't have any plan to implement SVG output, but would be accepting of that added functionality. :)

ibrahimrajabli commented 6 years ago

still not svg export? :)

kennycason commented 6 years ago

Correct. It would likely require a full rebuild of the rendering issue as currently the rendering engine and collision is all based off of BufferedImage. I would need to think more about the implementation.

Another less invasive idea is to simply store the location and size that the text is placed in the word cloud and from that i'm sure there's a library that can support text + SVG for the export. But I'd need to think how to do this cleanly. I've recently just been refactoring the core library to see if there is a better/cleaner/faster way to handle things.

zachzientek commented 2 years ago

+1 on being able to output SVG

kennardconsulting commented 2 years ago

There's a good chance all it would take is exposing those methods that create/accept a Graphics2D. Then we could hook in Apache Batik's Graphics2D implementation (which converts graphics calls to SVG).