From: Stefan F. <ste...@we...> - 2014-04-26 12:56:51
|
John: Thanks a lot for your code. Great reference. Question: Is there anything you might have done different in hindsight? And: You are right, writing to Swing is an option. However I expect that any suitable Java svg libraries with support for Swing allow the creation of a svg file by writing to a Graphics2D object. So if java as the implementation language switching from svg to direct painting will be nearly transparent. Stefan On 04/26/2014 02:09 PM, John A. Tamplin wrote: > On Tue, Apr 22, 2014 at 8:09 PM, brett lentz <bre...@gm... > <mailto:bre...@gm...>> wrote: > > If you're willing to contribute your Perl and/or Java code under the > GPL v2+ license that Rails uses, we can probably make use of it. > Posting the code to the list is a reasonable way to start. > > > Attached is my perl code and sample data. Of course the files reference > fonts that I own but can't redistribute - it should be easy enough to > substitute them (and you probably don't care so much about the fonts for > on-screen use). You are free to redistribute it (or any derived work) > under any open-source license you like if it is useful to you. > Initially the perl was pretty much a direct port of the Delphi code, > but of course it diverged significantly from there as I changed it to > meet my requirements. > > To add SVG support to the existing code, you would want to write an SVG > subclass of RenderTile similar to RenderTilePS. Note that there is a > lot of PS used in various places, such as annotations on tiles, that you > would also have to find some way of representing. Also, I'm not sure > how you would deal with the text metrics stuff to layout the text > properly, but again maybe you don't care if it isn't perfect. > > Instead of SVG, you could also have a Swing renderer implementation and > cut out the extra step if you liked. > > -- > John A. Tamplin > > > ------------------------------------------------------------------------------ > Start Your Social Network Today - Download eXo Platform > Build your Enterprise Intranet with eXo Platform Software > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > Get Started Now And Turn Your Intranet Into A Collaboration Platform > http://p.sf.net/sfu/ExoPlatform > > > > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > |