xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas E Deweese <thomas.dewe...@kodak.com>
Subject Re: text-decoration:underline is incorrect with tspan elements.
Date Tue, 25 Jun 2002 12:06:44 GMT
>>>>> "VH" == Vincent Hardy <vincent.hardy@sun.com> writes:

VH> Stefan, Thanks for reporting this. I have entered a bug in
VH> Bugzilla:

VH> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10133

VH> next time, you may want to enter the bug yourself: as the bug
VH> author, you get notified when the fix happens, which is nice.

    BTW I'm not 100% certain this is a bug.  As I recall
underline/overline etc. are supposed to ignore dx/y (what ever is the
non-progression direction) As you don't want to have your underline
move up under a superscript or down because of a subscript.

    I haven't spoken up sooner since I haven't been able to find the
location in the spec where it discusses this (it may be in the CSS 2
spec which SVG references for underline).  So I may be mis-recalling
this.

PS: Batik is still in the wrong as we use the line loc from the
    previous tspan rather than the start of the text chunk but fixing
    it, still won't help him with his problem. :)

VH> Cheers, Vincent.

VH> Stefan Rotman wrote:
>>  Hey,
>> 
>> If i use this svg file:
>> 
>> <?xml version="1.0"?> <svg width="250.0px" height="250.0px"> <text
>> x="31.0px" font-size="15.0px" y="24.0px"
>> text-decoration="underline" text-anchor="start" fill="rgb(0,0,0)"
>> font-family="Lucida Sans Typewriter"> This is a text <tspan
>> x="31.0px" dy="1em">that covers multiple</tspan> <tspan x="31.0px"
>> dy="1em">lines</tspan> </text> </svg>
>> 
>> The underline is placed incorrect. For the text within the <tspan>
>> elements the underline is placed under the previous textline. This
>> is also the casew hen the underline is set within a style attribute
>> (style="text-decoration:underline").
>> 
>> I use the CVS version of Batik, on a Linux SuSE 7.3 OS.
>> 
>> I filled out a bugreport.
>> 
>> Greetz, Stefan
>> 
>> PS. Keep up the good work!!
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org For
>> additional commands, e-mail: batik-users-help@xml.apache.org

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



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


Mime
View raw message