Bug 116333 - FILEOPEN SVG Text misplaced in graph
Summary: FILEOPEN SVG Text misplaced in graph
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
5.2.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2018-03-10 11:40 UTC by johan
Modified: 2022-05-04 21:39 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
example files (222.56 KB, application/zip)
2018-03-10 11:42 UTC, johan
Details
screenshot (24.68 KB, image/png)
2018-03-17 20:30 UTC, johan
Details
ODT with the inserted SVGs (167.96 KB, application/vnd.oasis.opendocument.text)
2022-05-04 21:37 UTC, Silvestr VS
Details
Screenshot of the two SVGs opened in Draw side by side (106.26 KB, image/png)
2022-05-04 21:39 UTC, Silvestr VS
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johan 2018-03-10 11:40:22 UTC
Description:
1) When an SVG file is inserted into Writer or Draw, some objects are not displayed correctly.

In this case, these objects include text, but the bug occurs even if texts are converted to paths. 

2) When the same SVG files are opened in Draw (not inserted), these objects are shown. However, some texts are not in the correct locations.

3) The quality of some SVG objects is unsatisfactory. This is especially apparent when texts are converted to paths. 


Link to example files below. The package contains:

a) an SVG file with this property
b) the same SVG file with texts converted to paths
c) a PNG file rendered from the first SVG file
d) a screenshot showing an example - both SVG files inserted into Libreoffice Writer (top: texts; bottom: paths), and the PNG file shown for comparison
e) a screenshot showing both SVG files opened in Draw - left: texts; right: paths

Firefox and Inkscape should show both SVG files correctly.

Example files:
https://mega.nz/#!BhpCBKgB!vy_UEEZ3vsSQlEIoVkPnYeT0uc-lE3FdvIFY_JkgYYQ

Steps to Reproduce:
1. Download and unpack the example files
2. Insert the example SVG files into Writer or Draw
3. Open (do not insert) the example files in Draw
4. Compare with the PNG file, or open the SVG files in Firefox or Inkscape

Actual Results:  
Objects are not shown or placed correctly as exaplained above.

Expected Results:
Objects and texts should be shown and placed correctly as shown in the PNG file.


Reproducible: Always


User Profile Reset: No



Additional Info:
Platform is Debian 9 "Stretch", x86-64. OpenGL is not enabled. Libreoffice version information from Writer:

Version: 5.2.7.2
Build ID: 1:5.2.7-1+deb9u2
CPU Threads: 4; OS Version: Linux 4.9; UI Render: default; VCL: gtk2; 
Locale: fi-FI (fi_FI.utf8); Calc: group


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0
Comment 1 johan 2018-03-10 11:42:58 UTC
Created attachment 140542 [details]
example files

Example files in a Zip package. I couldn't attach these when submitting the bug.
Comment 2 Regina Henschel 2018-03-10 13:16:14 UTC
Please try it with an actual release. I cannot confirm the problem in Version: 6.0.1.1 (x64)
Build ID: 60bfb1526849283ce2491346ed2aa51c465abfe6
CPU threads: 8; OS: Windows 10.0; UI render: default; 
Locale: de-DE (de_DE); Calc: CL
Comment 3 johan 2018-03-10 13:31:27 UTC
Tested on version 5.4.5.1 (on Windows):

The missing objects problem when inserting (nr. 1) does not seem to occur anymore.
 
However, misplaced texts when opening in Draw (nr. 2) and the quality issue with texts converted to paths (nr. 3) are still present on this version.

Additionally, the curves seem to extend outside the plot area when opened in Draw, but not when inserted. This applies to both 5.4.5.1 and 5.2.7.2. This should not happen - the curves should end inside the plot area (see the PNG example).

Version information on Windows:

Version: 5.4.5.1
Build ID: 79c9829dd5d8054ec39a82dc51cd9eff340dbee8
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
Locale: fi-FI (fi_FI); Calc: group
Comment 4 Xavier Van Wijmeersch 2018-03-10 18:35:23 UTC
no repro with

Version: 5.3.8.0.0+
Build ID: 7f1297d9b4f449eb9ada8008fb21b7046d1a8f19
CPU Threads: 8; OS Version: Linux 4.14; UI Render: default; VCL: kde4; Layout Engine: new; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:libreoffice-5-3, Time: 2017-11-10_15:56:34
Locale: nl-BE (en_US.UTF-8); Calc: group

Version: 5.4.4.2
Build ID: 2524958677847fb3bb44820e40380acbe820f960
CPU threads: 8; OS: Linux 4.14; UI render: default; VCL: kde4; 
Locale: en-US (en_US.UTF-8); Calc: group

Version: 6.1.0.0.alpha0+
Build ID: 573caba6f3056797ed3a1235efecdbaffa7eeb44
CPU threads: 8; OS: Linux 4.14; UI render: default; VCL: kde4; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2018-03-09_22:56:15
Locale: nl-BE (en_US.UTF-8); Calc: group
Comment 5 Buovjaga 2018-03-11 15:06:23 UTC
johan: try it with a fresh master build just in case: https://dev-builds.libreoffice.org/daily/master/Win-x86_64@42/current/
Or an appimage on Linux https://www.libreoffice.org/download/appimage
Comment 6 johan 2018-03-17 20:30:36 UTC
Created attachment 140679 [details]
screenshot
Comment 7 johan 2018-03-17 20:31:41 UTC
Tested with:

Version: 6.0.2.1
Build ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
Locale: fi-FI (fi_FI); Calc: group

Nr. 1) does not seem to occur.

Nr. 2), however, still occurs when example.svg is opened (NOT inserted) in Draw. Some texts are in the wrong places, and the curves extend outside the plot area even though they should not. A screenshot is attached.

Nr. 3) still occurs, the path objects represeting text look rough. This may be a feature, but they look much smoother in web browsers, for example.
Comment 8 Buovjaga 2018-03-18 11:49:35 UTC
Urgh... to make matters worse, there is a recent regression which makes all SVG files appear completely blank when opened (not inserted).

Opened bug 116467 for it.
Comment 9 Buovjaga 2018-03-26 18:00:57 UTC
I'm seeing number 2, the label & legend text placement issue (example.svg), but not number 3, the text aliasing either on Win or Lin.

Version: 6.0.2.1 (x64)
Build ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: fi-FI (fi_FI); Calc: group

Arch Linux 64-bit
Version: 6.0.2.1.0+
Build ID: 6.0.2-1
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group

Arch Linux 64-bit
Version: 6.1.0.0.alpha0+
Build ID: add7a962bc33b3c1f2252a9920bebf324df688de
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on March 26th 2018
Comment 10 QA Administrators 2019-05-13 02:50:46 UTC Comment hidden (obsolete)
Comment 11 johan 2019-07-06 11:41:36 UTC
Tested on Windows 7, 32-bit, with a clean installation of:

Version: 6.2.5.2 (x86)
Build ID: 1ec314fa52f458adc18c4f025c545a4e8b22c159
CPU threads 4; OS: Windows 6.1; Redering component: default; VCL: win; 
Locale: fi-FI (fi_FI); User interface language: fi-FI
Calc: threaded


Nr. 1) does not occur. 

Nr. 2) does not occur. However, the plot curves are slightly extended over the plot area/grid. This should not happen. It does not happen in Firefox. Could bug #116623 be related?

Nr. 3) still occurs. example_noText.svg still looks rough in Libreoffice Writer.  I don't know if this is just a feature, but it looks much smoother in Firefox.
Comment 12 QA Administrators 2021-07-06 03:59:56 UTC Comment hidden (obsolete)
Comment 13 Silvestr VS 2022-05-04 21:36:14 UTC
Not reproducible under

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 465c3ad95059f0efa13c8027f7383c4d20a5b2ff
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

There is only slight visual inconsistency between the text rendering from text and paths, but all objects are in their places, visible and I can't see any roughness either. I'll upload a screenshot and an ODT with the two for reference.
Comment 14 Silvestr VS 2022-05-04 21:37:36 UTC
Created attachment 179930 [details]
ODT with the inserted SVGs
Comment 15 Silvestr VS 2022-05-04 21:39:00 UTC
Created attachment 179931 [details]
Screenshot of the two SVGs opened in Draw side by side