Bug 97537 - INSERT: SVG text color and style incorrect
Summary: INSERT: SVG text color and style incorrect
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
4.0.6.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:svg
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2016-02-03 19:04 UTC by Yousuf Philips (jay) (retired)
Modified: 2022-11-23 07:46 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
LibreOffice vs Inkscape (58.86 KB, image/png)
2016-02-03 19:04 UTC, Yousuf Philips (jay) (retired)
Details
bloglines in LO Draw 6.1 beta 2 (18.19 KB, image/png)
2018-06-19 19:35 UTC, Roman Kuznetsov
Details
LO 7.5 on Ubuntu 20.04 (left) and Windows 10 (right) (144.67 KB, image/png)
2022-11-23 07:46 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2016-02-03 19:04:49 UTC
Created attachment 122361 [details]
LibreOffice vs Inkscape

Steps:
1) Open Writer
2) Insert https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/bloglines.svg
3) Increase the size of the image so it equals to the width of the page
4) Notice that the 'B' is in italics and notice that its fill color is black and visible, which isnt the same in other SVG apps (Firefox, Chromium, Inkscape)

The SVG code for the letter 'B' is: <text x="1.5" y="11" font-family="courier" stroke="white" font-size="16"><![CDATA[B]]></text>

Version: 5.2.0.0.alpha0+
Build ID: 513d5c5781ec14f8512432f31290a3d54c8d57df
CPU Threads: 2; OS Version: Linux 4.2; UI Render: default; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-02-01_10:25:20
Locale: en-US (en_US.UTF-8)
Comment 1 raal 2016-02-04 08:21:51 UTC
I can confirm with Version: 5.2.0.0.alpha0+
Comment 2 Yousuf Philips (jay) (retired) 2016-02-08 19:26:24 UTC
The old SVG implementation code found in 3.6.7 didnt have this problem.
Comment 3 QA Administrators 2017-03-06 15:22:02 UTC Comment hidden (obsolete)
Comment 4 Roman Kuznetsov 2018-06-19 19:35:52 UTC
Created attachment 142939 [details]
bloglines in LO Draw 6.1 beta 2

still repro in LO Draw 6.1 beta 2, but rendering became worse
Comment 5 QA Administrators 2019-06-20 02:49:40 UTC Comment hidden (obsolete)
Comment 6 Regina Henschel 2019-06-20 13:46:30 UTC
The black part in the middle of the B is correct. It is the default value for the missing 'fill' attribute. It is only covered by the stroke.

The rendering of the outline of B is still wrong. It looks as if it is a problem of accuracy. If you increase all length values by 10 in the SVG source, then the outline becomes curved.

I see the error still in Version: 6.4.0.0.alpha0+ (x64)
Build ID: 7aaa7212f2f37606b34d44a039398f05c02d5660
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-06-11_23:48:14
Locale: de-DE (en_US); UI-Language: en-US
Calc: threaded
Comment 7 QA Administrators 2021-06-20 03:46:47 UTC Comment hidden (obsolete)
Comment 8 Stéphane Guillou (stragu) 2022-11-23 07:45:13 UTC
I can't reproduce in:

Version: 7.4.2.3 / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

or:

Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: deb7bc82de19ea8e20c767fdf21f9ba4feb5e9f0
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

or even:

Version: 6.3.6.2
Build ID: 2196df99b074d8a661f4036fca8fa0cbfa33a497
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3; 
Locale: en-AU (en_AU.UTF-8); UI-Language: en-US
Calc: threaded

However, I can see issues on Windows:

Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: deb7bc82de19ea8e20c767fdf21f9ba4feb5e9f0
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: threaded

Marking as Windows-specific for now.
Comment 9 Stéphane Guillou (stragu) 2022-11-23 07:46:08 UTC
Created attachment 183729 [details]
LO 7.5 on Ubuntu 20.04 (left) and Windows 10 (right)