xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thierry Kormann <tkorm...@ilog.fr>
Subject Re: Using TextLayout in Java2d rendering
Date Mon, 17 Sep 2001 16:23:59 GMT
On Wednesday 22 August 2001 07:13, Thomas Patterson wrote:
> I am using the TextLayout class to center text, etc in my rendering classes
> to label items.  When converted to svg, however, it is output as a polygon
> drawing rather than an svg text element (which takes much time for the
> SVGViewer to render).
> Is there any way to avoid this?  Simply using g.drawString("sdsds") works,
> but I lose the flexibility of TextLayout.

TextLayout is really difficult to handle properly in the SVGGraphics2D. Some 
features don't have the equivalent in SVG so there is actually no way to use 
the TextLayout API and generates a <text> element.


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

View raw message