https://bugs.documentfoundation.org/show_bug.cgi?id=160593

            Bug ID: 160593
           Summary: SVG import: wrong calculation of tspan's dy using em
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: filters and storage
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 193580
  --> https://bugs.documentfoundation.org/attachment.cgi?id=193580&action=edit
dy in em's

The attached SVG has this markup:

  <text x="5" y="20" style="font-size:16px;font-family:Liberation Sans">foo
    <tspan x="5" dy="1.5em" style="font-size:0.5em">bar</tspan></text>

It sets the outer (text's) font-size to 16px, then in the inner tspan, it sets
the font-size to 0.5em, and dy to 1.5em. According to spec, the font-size value
of the tspan must be calculated as half of its inherited font-size (i.e., half
of 16px); and in all other places inside tspan (e.g., in the dy), the em must
refer to the current tspan's font-size (8px).

When opening the SVG in a browser (e.g., Chrome), the second line "bar" is
rendered much closer to the first line, than in Draw.

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

Reply via email to