Bug 95400

Summary: FILEOPEN: SVG: textLength and lengthAdjust attributes are not imported
Product: LibreOffice Reporter: Xisco Faulí <xiscofauli>
Component: DrawAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: 79045_79045, raal, xiscofauli
Priority: medium Keywords: filter:svg
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=81484
Whiteboard: target:24.2.0 target:7.6.1
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 88278    
Attachments: sampleTextLength
how it looks in chrome
printscreen
sampleTextLength.svg in LO Draw 6.1 beta 2
LibreOffice 7.2 vs Firefox

Description Xisco Faulí 2015-10-28 18:46:47 UTC
Created attachment 120055 [details]
sampleTextLength

Steps:
1. Open attached document and compare with the image
Comment 1 Xisco Faulí 2015-10-28 18:47:22 UTC
Created attachment 120056 [details]
how it looks in chrome
Comment 2 raal 2015-10-29 14:16:06 UTC
Created attachment 120077 [details]
printscreen

I can confirm with Version: 5.1.0.0.alpha1+
Build ID: 9a85743766e8a063d20d5f93ee88758e243397f4
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2015-10-23_00:56:3
Comment 3 Heiko Tietze 2016-05-17 13:50:42 UTC
Not sure if this isn't rather a svg filter issue (see also 88278), but similar observations have been made with the pdf filter (see also 81484).
Comment 4 Heiko Tietze 2016-05-17 13:58:39 UTC
*** Bug 95401 has been marked as a duplicate of this bug. ***
Comment 5 QA Administrators 2017-05-22 13:41:15 UTC Comment hidden (obsolete)
Comment 6 Roman Kuznetsov 2018-06-19 14:39:28 UTC
Created attachment 142917 [details]
sampleTextLength.svg in LO Draw 6.1 beta 2

In LO Draw 6.1 beta 2 it looks better than before, but there is different from original view of SVG (in Chrome or in Inkscape)

confirm bug
Comment 7 QA Administrators 2019-06-20 02:49:47 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2021-06-20 03:46:41 UTC Comment hidden (obsolete)
Comment 9 Xisco Faulí 2021-06-21 09:11:06 UTC
Created attachment 173050 [details]
LibreOffice 7.2 vs Firefox
Comment 10 Xisco Faulí 2023-08-02 15:39:07 UTC
This issue is fixed since 911ac42485b690df5cbbff6e3c04b111c1723aca
Actually textLength and lengthAdjust attributes were supported all the time, but if(aContent.startsWith("spacing")) was always true for "spacing" or "spacingAndGlyphs"
Comment 11 Commit Notification 2023-08-02 20:29:18 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/7aae2fbef91d00afaded26215f48fcdb2070b6ef

tdf#95400: svgio: Add unittest

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 12 Commit Notification 2023-08-14 10:55:04 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/7b61ce610e08165d542f4409bb90611312dac0b7

tdf#95400: svgio: Add unittest

It will be available in 7.6.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.