Hi Matthew,

"Matthew Darlison" <[EMAIL PROTECTED]> wrote on 08/28/2007 01:26:46 PM:

> I'm working on code to generate a Java2D illustration, and output it to 
a 
> variety of formats, including SVG via the Batik SVGGraphics2D.

   What version of Batik are you using?

> I'm getting great output quality, but large files because the default 
> export renders the entire outlines of the text to paths, rather than the 

> text itself. 

   There are a number of ways that this can happen.  How are you drawing
the text?  (what method is being used on the Graphics2D?).

> Is there any way of configuring the export to say I'm happy to take the 
> quality hit, and lose the abaility to determine exactly what font gets 
> used, if it means I get a clean SVG with text in it rather than lots of 
> very long outline geometric paths...?

   The default behavior is to try and render text as text.  There is a 
parameter you can pass to the constructor of the SVGGraphics2D that will 
force it to always convert text to paths. I'm assuming that you haven't 
set that.

> I'd be happy with a CSS-style definition of "sans-serif" and a point 
size...

   I think the current versions of the SVGGraphics2D will handle
almost all text as text except in cases where advanced features are
used like AttributedCharacterIterators with some of the more complex
attributes, or all GlyphVectors.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to