Hi John,

"John C. Turnbull" <[email protected]> wrote on 12/31/2008 10:33:46 
PM:

> I have a number of SVGs which feature graphics with thin borders. 
> The problem is that with Batik when it renders those SVGs at smaller
> sizes, it tends to not display all or parts of the border at all.
> 
> How difficult would it be to modify Batik so that it never fails to 
> render something because it becomes ?too thin? but rather renders it
> with a higher alpha value instead to give the illusion of thinness 
> at smaller scales?

   As long as we are talking about true SVG strokes it might be
possible by adjusting batik.gvt.StrokingShapePainter so that it
checks the screen stroke width in it's paint method and then
replace the 'real' stroke with a wider stroke to maintain some
minimal stroke width (say .5 screen pixel or something).

   If the SVG content actually draws the thin lines as shapes
then detecting/fixing these would effectively require writing 
a new rasterizer.

Reply via email to