hm - this seems to be very unlikely. I don't see why the protocol used should influence the SVG rendering.

Can't there be another cause?

Font issues or whitespace are much more likely to be the cause. Just because a font is installed on a system, it doesn't necessarily mean that Batik is using it. To be on the safe side with fonts, I recommend the use of SVG fonts.

Can you create a very small example illustrating the issue? if possible without any complex scripting or serverside scripting.

Andreas


Dylan Browne wrote:

Hi all,

Thanks for the updates. I have one myself…. which is straying slightly off-topic, (and may potentially be becoming non-Batik so apologies if so), but the two may be linked.

We have now noticed shifting in rendering of SVG (not the PNG export specifically) when we generate over SSL and when we generate over plain HTTP.

The SVG is rendered correctly in precisely the dimensions and locations specified by the values provided, so no problem there. But the calculations as to where things should be located in the display are returning different values depending on the protocol, that is, different in HTTP and HTTPS.

It appears the calculation of the height of text is somehow behaving differently, though this could be a red herring, when retrieving the bounding box. Apologies for being vague, if/when further details become clear I will post them. In the meantime, if this rings any bells with anyone, all help gratefully received.

Best regards,

Dylan

* From: * [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Archie Cobbs
*Sent:* 15 October 2007 20:31
*To:* [email protected]
*Subject:* Re: Text shift during export to PNG

This is probably not the problem but... I've seen text "shifting" in the past when I wasn't being careful about whitespace.

E.g., if the XML files are identical, but one has more or less whitespace inside a <text> tag, then the text can shift because of the extra space.

On 10/15/07, *Greg* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

Same fonts are used on server. I have tried this on PC and Linux. The same shifting occurs on both. I have also tried different fonts with the same shifting.

Greg



Guillaume Rosauro wrote:

Are the same fonts installed on the servers? Maybe the problem could come from this.



On 10/12/07, *Dylan Browne* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

Hi Greg,

Thanks for that, good to know we are not alone! ;)

Does anyone have any more specific info about this... my concern is that
it is not consistent between machines/environments (though within a
single machine/environment it is consistent).

Grateful for any help,

Dylan.

-----Original Message-----
From: Greg [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>]
Sent: 11 October 2007 19:13
To: [email protected] <mailto:[email protected]>
Subject: Re: Text shift during export to PNG

I seem to have this problem as well. It seems to show up differently at
different locations on the screen for me. It looks as if it is a
positional rounding issue for text.
scooter wrote:
> Hi all,
>
> I have come across a strange problem when exporting an SVGDocument to
PNG
> using the Batik PNGTranscoder.
>
> In general it works well, but on one particular server (the
application is
> deployed on three test servers) all the Text content of the Document
is
> shifted upwards. The amount of movement seems to share some
relationship
> with the font size. For example, smaller text is moved less than
larger
> text.
>
> I am not sure where to start looking for the cause of this problem.
Clearly
> there is something different in the environment of the server in
question,
> but am not sure what that could be.
>
> (Will post screenshots if that helps?)
>
> Any tips gratefully received as ever,
>
> Regards, Dylan
>
>
>


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




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




--
Archie L. Cobbs
CTO, Awarix, Inc.
http://www.awarix.com



--
--
----------------------------------------------
Andreas Neumann
Institute of Cartography
ETH Zurich
Wolfgang-Paulistrasse 15
CH-8093  Zurich, Switzerland

Phone: ++41-44-633 3031, Fax: ++41-44-633 1153
e-mail: [EMAIL PROTECTED]
www: http://www.carto.net/neumann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/


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

Reply via email to