Bug 88365

Summary: [SVG] text label not displayed correctly after Insert or Open (problem with: group object <g text-anchor="end">)
Product: LibreOffice Reporter: Zac <n.zacharias>
Component: filters and storageAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: qubit, todventtu
Version: 4.3.3.2 releaseKeywords: regression
Hardware: x86-64 (AMD64)   
OS: All   
Whiteboard: filter:svgInsert filter:svgOpen bibisectRequest
i915 platform: i915 features:
Attachments: How the SVG looks in firefox
How the same SVG looks in LO
The SVG-File (excerpt taken from line 135 ff)
LO file

Description Zac 2015-01-13 11:04:51 UTC
Created attachment 112160 [details]
How the SVG looks in firefox

<g transform="translate(1645.9,65.4)" stroke="none" fill="black" font-family="Calibri" font-size="20.00"  font-weight="bold"  text-anchor="end">
		<text >
		<tspan font-family="Calibri"  >dir</tspan>
		<tspan font-family="Calibri"  font-size="16.0"  dy="6.00px">1</tspan>
		<tspan font-family="Calibri"  font-size="20.0"  dy="-6.00px"> ist noch</tspan>
		<tspan font-family="Calibri"  font-size="16.0"  dy="-10.00px">2</tspan>
		<tspan font-size="20.0" dy="10.00">####</tspan>
		</text>
</g>

yields that all tspan objects in this group are alinged wrong.
if text-anchor="start" is used the alignment of the group members are as expected but the whole group then is missaligned to the Objects outside of the group
Comment 1 Zac 2015-01-13 11:07:59 UTC
Created attachment 112161 [details]
How the same SVG looks in LO
Comment 2 Zac 2015-01-13 11:10:11 UTC
Created attachment 112162 [details]
The SVG-File (excerpt taken from line 135 ff)
Comment 3 Zac 2015-01-13 11:11:11 UTC
Created attachment 112163 [details]
LO file
Comment 4 Zac 2015-01-13 11:19:15 UTC
Because I can not edit the description:

it seems that the text-anchor is propagated to all the group members instead of using it only for the alignment of the whole group
Comment 5 Robinson Tryon (qubit) 2015-01-14 12:20:29 UTC
(In reply to Zac from comment #4)
> Because I can not edit the description:
> 
> it seems that the text-anchor is propagated to all the group members instead
> of using it only for the alignment of the whole group

Looks like attachment 112162 [details] is your repro document. The examples of how the document renders in other software is appreciated as well. Please provide steps to reproduce the problem (Open in Draw? Insert into Writer? etc..), and then change status back to UNCONFIRMED. Thanks!

Status -> NEEDINFO
Comment 6 Zac 2015-01-14 12:54:30 UTC
Sorry I don't know what you are talking about.

The attachment 112162 [details] is the Svg file wich is imported to LO.by insert picture from file (i guess Einfügen->Bild->aus Datei)
 
and how the file is renderd in LO you see in the attachment named 
"How the same SVG looks in LO"(sorry don't know how to add a link here) 

To see how other software (like Firefox) renderes open  "How the SVG looks in firefox" or open the SVG-File in Firefox als file://....
Comment 7 Robinson Tryon (qubit) 2015-01-14 17:52:05 UTC
TESTING on Ubuntu 14.04 + LO 4.4.0.2
And Firefox 34.0

(In reply to Zac from comment #6)
> Sorry I don't know what you are talking about.
> 

Here's a step of repro steps that one can follow like a recipe:

REPRO Steps: 
> 
0) View attachment 112162 [details] in Firefox

Looks like a sinusoidal graph.

1) Download attachment 112162 [details]
2) Open Writer
3) Insert -> Image -> (downloaded attachment)
4) Compare rendering in Writer with rendering in Firefox

RESULT:
- Text label "dir 1 ist noch 2 ####" displays legibly in FF 34, but is illegible in LibreOffice after Insert.

Status -> NEW
Whiteboard -> filter:svgInsert

I also tested svgOpen in Draw
- Text label doesn't appear when the file is opened in Draw
Whiteboard -> filter:svgOpen
Comment 8 Beluga 2015-01-16 16:10:51 UTC
Works in 3.5.0.
Already broken in 4.3.3

Ubuntu 14.10 64-bit 
LibreOffice 3.5.0rc3 
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735

Version: 4.3.3.2
Build ID: 430m0(Build:2)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.