xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40368] - WMF to SVG text / image alignment issues
Date Mon, 04 Sep 2006 23:01:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40368>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40368





------- Additional Comments From herve.girod@club-internet.fr  2006-09-04 23:01 -------
(In reply to comment #5)
> The patch works fine when patched against the latest SVN trunk.
> 
> There is however, an issue with the bottom of the generated PDF (when
> transcoding using the second [larger] WMF)
> 
> The horizontal alignment doesn't seem to match up, the text at the bottom is
> side by side... when it should be URL at the left, and eMail address at the
> right... (see WMF for better explaination).

It seems not to be in the transcoder package. There is only one String for the
bottom and it has a lot of white spaces between the two consecutive words; the
WMFPainter class correctly decodes the text (with all its white spaces), but if
you look at the resulting File, there is only one resulting white space between
the words.

I tracked the problem in the SVGGraphics2D class, and the iteration stuff in the
associated attributed String is OK too. I suspect two possible causes (I will
look at it more closely in the next days, but perhaps Thomas DeWeese could give
a hint ?) :
- either it is simply a problem of how Batik deals with several white
consecutive spaces
- or it results on the way of how the underlying XML parser deals with
consecutive white spaces (the ignorable white space property).

I suspect the second, because if I convert and open on the fly the second
example in my local copy of Batik, and I look at the resulting properties in the
viewer, I see several white spaces, but only one is visible in the panel. Also,
as said before, if I write the result in a File, I have only one white space.

Hoping this comment is not too confusing...

Herve Girod

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message