xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tonny Kohar <to...@kiyut.com>
Subject RE: Convert element to curves
Date Wed, 14 Sep 2005 18:26:51 GMT
Hi,

On Tue, 2005-09-13 at 16:28 -0300, Ing. Angel Monticelli wrote:
> Hi Tonny!
> 
> I'm trying this code but I can't make it works... Please gime a hand! :D
> 
> Shape shapTxt;
> TextLayout txtTl = new TextLayout("Hello World!", new
> Font("BernhardFashion BT", 1, 96), new FontRenderContext(null, false,
> false));
> 
> ... And then?? How can I use 	GraphicsNode???

Maybe you can use something like this

SVGShape svgShape = ....
shapTxt = txtTl.getOutline();
Element e = svgShape.toSVG(java2dShape);

Check the SVGShape doc for more info on how it convert to SVG.

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message