You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2013/06/12 16:35:23 UTC

[Bug 122522] New: [SVG import] too thick line segments

https://issues.apache.org/ooo/show_bug.cgi?id=122522

            Bug ID: 122522
        Issue Type: DEFECT
           Summary: [SVG import] too thick line segments
           Product: Draw
           Version: AOO400-dev
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: open-import
          Assignee: issues@openoffice.apache.org
          Reporter: datbug@trash-mail.com
                CC: issues@openoffice.apache.org

Created attachment 80827
  --> https://issues.apache.org/ooo/attachment.cgi?id=80827&action=edit
image showing the behaviour

XP, AOO400m2(Build:9701) - Rev. 1489073 2013-06-03 13:48:37 (Mo, 03 Jun 2013)
Insert->Picture->From File
short line segments are too thick and look different although created the same
way??

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

[Bug 122522] [SVG import] too thick line segments

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122522

--- Comment #3 from Armin Le Grand <Ar...@me.com> ---
Created attachment 80846
  --> https://issues.apache.org/ooo/attachment.cgi?id=80846&action=edit
Overlayed parts (screenshot from other renderer, SVG in AOO)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

[Bug 122522] [SVG import] too thick line segments

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122522

--- Comment #7 from Armin Le Grand <Ar...@me.com> ---
ALG: Reduced the exaple to only have two lines and the letters of the last
molecule. Mozilla and Safari render it the same.

Lines: Each has it's own group, in the group a style with stroke-width, th
eline itself also has a stroke-width (same numerical value). The group also
defines a transform. Which stroke-width is valid and does it underly the
transformation in the parent group?

Letters: text elements have a style element which contains a font-size
statement and a direct font-size statement, both numerically different. Which
one wins in such a case? Removing the non-style font-size statement makes it
look better. Need to check what SVG spec says about such a case.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 122522] [SVG import] too thick line segments

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122522

--- Comment #6 from Armin Le Grand <Ar...@me.com> ---
Created attachment 80848
  --> https://issues.apache.org/ooo/attachment.cgi?id=80848&action=edit
Reduced example

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 122522] [SVG import] too thick line segments

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122522

--- Comment #5 from Armin Le Grand <Ar...@me.com> ---
ALG: Öetters may be the same as #122524#

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 122522] [SVG import] too thick line segments

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122522

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |ACCEPTED

--- Comment #8 from Armin Le Grand <Ar...@me.com> ---
ALG: Letters: Difference is that one font-size is a 'presentation attribute'
the other a 'CSS style'. Found something about it in
http://www.w3.org/TR/SVG/styling.html#UsingPresentationAttributes, the
interesting sentemce is 'In general, this means that the presentation
attributes have lower priority than other CSS style rules specified in author
style sheets or ‘style’ attributes.'. This means the 'CSS style' font-size
should have priority. Checking how to do that for attributes in general...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 122522] [SVG import] too thick line segments

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122522

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Armin.Le.Grand@me.com

--- Comment #2 from Armin Le Grand <Ar...@me.com> ---
ALG: Did a direct overlay with mozilla display, I see two errors:
- The letters at the mulecules are too big (this covers the correct line in
example1)
- The lines in 2nd and 3rd example indeed have a linewidth they should not
have.
Thanks for the examples, I will have a look!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

[Bug 122522] [SVG import] too thick line segments

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122522

--- Comment #10 from Armin Le Grand <Ar...@me.com> ---
Created attachment 80873
  --> https://issues.apache.org/ooo/attachment.cgi?id=80873&action=edit
Even further reduced example only showing the LineWidth issue

ALG: I further reduced the example (added here). Strange:
(a) In Safari, 1st line is very thin, 2nd is normal
(b) In Mozilla it's the same
(c) In Inkscape (ungroup twice) the two lines have the same width

Intended is probably (c), but I cannot see how this happens from the values
directly in the SVG. All embeddings in transformations (the groups) have
influence on LineWidth, this is taken into account in import. Still, first line
is fat, 2nd is not.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 122522] [SVG import] too thick line segments

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122522

--- Comment #9 from Armin Le Grand <Ar...@me.com> ---
ALG: Okay, done that in SvgNode::parseAttributes (explanation there). comitting
this, the 'Letters' part is solved with this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 122522] [SVG import] too thick line segments

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122522

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rb.henschel@t-online.de

--- Comment #11 from Armin Le Grand <Ar...@me.com> ---
ALG: Both lines have stroke-width defined twice, once in style at group level,
once in style at line level. I am pretty sure the one from Line-level has to be
used, thus it will get transformed. That's what is constructed in the import,
but result is different from e.g. inkscape.
@Regina (setting on CC): Do you see how/why in inkscape both lines have the
same width...?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 122522] [SVG import] too thick line segments

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122522

--- Comment #1 from datbug@trash-mail.com ---
Created attachment 80828
  --> https://issues.apache.org/ooo/attachment.cgi?id=80828&action=edit
test file

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

[Bug 122522] [SVG import] too thick line segments

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122522

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
           Assignee|issues@openoffice.apache.or |Armin.Le.Grand@me.com
                   |g                           |
     Ever confirmed|0                           |1

--- Comment #4 from Armin Le Grand <Ar...@me.com> ---
ALG: Grepping

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.