Bug 48067 - [SVG] stroke-dashoffset not supported
Summary: [SVG] stroke-dashoffset not supported
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
3.5.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:svg
: 97689 (view as bug list)
Depends on:
Blocks: SVG-Import SVG-Open
  Show dependency treegraph
 
Reported: 2012-03-29 15:32 UTC by Valek Filippov
Modified: 2024-11-19 12:53 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
W3C SVG test suite "painting-stroke-04-t" (3.74 KB, image/svg+xml)
2012-03-29 15:32 UTC, Valek Filippov
Details
simplifier file for analysis (475 bytes, image/svg+xml)
2015-10-26 12:04 UTC, Xisco Faulí
Details
another example (1.09 KB, image/svg+xml)
2023-07-06 11:03 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Valek Filippov 2012-03-29 15:32:41 UTC
Created attachment 59245 [details]
W3C SVG test suite "painting-stroke-04-t"

Attached file has two parallel lines. LO opens it as two polygons.
Comment 1 sasha.libreoffice 2012-06-27 01:02:13 UTC
Thanks for bugreport
Link to site:
http://www.w3.org/Graphics/SVG/Test/20110816/harness/htmlObject/painting-stroke-04-t.html

reproduced in 3.3.4 on Fedora in both File->Open and Insert->Picture
reproduced in 3.5.4 and 3.6.beta1 only in File->Open
Comment 2 QA Administrators 2015-09-04 02:49:59 UTC Comment hidden (obsolete)
Comment 3 Xisco Faulí 2015-10-26 12:04:54 UTC
Created attachment 119965 [details]
simplifier file for analysis

This issue is still present in

Version: 5.0.2.2
Build ID: 37b43f919e4de5eeaca9b9755ed688758a8251fe
Locale: es-ES (es_ES)

on Windows 7
Comment 4 Xisco Faulí 2015-10-26 12:05:11 UTC Comment hidden (obsolete)
Comment 5 Robinson Tryon (qubit) 2015-12-09 18:52:45 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2017-10-30 08:33:58 UTC Comment hidden (obsolete)
Comment 7 Xisco Faulí 2018-06-20 16:41:15 UTC
Still reproducible in

Version: 6.2.0.0.alpha0+
Build ID: 370a30b6acc5b99b6046440f6b5f4f3f5f9f4b1a
CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group threaded
Comment 8 Armin Le Grand (allotropia) 2018-07-04 13:05:12 UTC
In C:\lo\work01\svgio\source\svgreader\svgstyleattributes.cxx in method SvgStyleAttributes::add_stroke there is a comment:

                            // todo: Handle getStrokeDashOffset()

Thus - missing feature ;-)
Comment 9 QA Administrators 2019-07-05 02:45:28 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2021-07-05 03:48:00 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2023-07-06 03:15:24 UTC Comment hidden (obsolete)
Comment 12 Xisco Faulí 2023-07-06 07:28:55 UTC
Still reproducible in

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7f1012806f5cf2cd53e52d8f2a95c09a2215efbc
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 13 Xisco Faulí 2023-07-06 11:03:04 UTC
Created attachment 188231 [details]
another example
Comment 14 Xisco Faulí 2023-09-06 15:36:34 UTC
*** Bug 97689 has been marked as a duplicate of this bug. ***
Comment 15 Chris Sherlock 2024-11-09 12:57:18 UTC
Armin, when I get a computer again (mine has died) I think that the candidate function might be VclProcessor2D::RenderPolygonStrokePrimitive2D(). 

In particular basegfx::utils::applyLineDashing() looks like it needs extending to take the offset parameter, and drawinglayer::attribute::StrokeAttribute needs to be extended to cater for an offset.
Comment 16 Chris Sherlock 2024-11-12 15:17:07 UTC
I've started off a patch to at least make drawinglayer::attribute::LineAttribute stroke dash-offset aware. 

https://gerrit.libreoffice.org/c/core/+/176484
Comment 17 Regina Henschel 2024-11-19 12:53:16 UTC
(In reply to Chris Sherlock from comment #16)
> I've started off a patch to at least make
> drawinglayer::attribute::LineAttribute stroke dash-offset aware. 
> 
> https://gerrit.libreoffice.org/c/core/+/176484

Please consider how to represent it in ODF and contact the ODF TC before actually implementing it.