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

            Bug ID: 160594
           Summary: SVG import: wrong calculation of tspan's font-size
                    using ex
           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 193581
  --> https://bugs.documentfoundation.org/attachment.cgi?id=193581&action=edit
ex units

The attached SVG has this markup:

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

It sets the outer (text's) font-size to 16px, then in the inner tspan, it sets
the font-size to 1ex, and dy to 3ex. According to spec, the font-size value of
the tspan must be calculated as 1 x-height of the first available font with
inherited font-size, with a fallback to 0.5em (i.e., roughly half of 16px).

When opening the SVG in a browser (e.g., Chrome), the second line "bar" is
rendered with a smaller size than the first line. In Draw, the second line is
incorrectly rendered using the same font size as the first line.

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

Reply via email to