You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Thierry Kormann <tk...@ilog.fr> on 2001/09/17 18:23:59 UTC

Re: Using TextLayout in Java2d rendering

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.

Thierry.


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