Bug 95400 - FILEOPEN: SVG: textLength and lengthAdjust attributes are not imported
Summary: FILEOPEN: SVG: textLength and lengthAdjust attributes are not imported
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:24.2.0 target:7.6.1
Keywords: filter:svg
: 95401 (view as bug list)
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2015-10-28 18:46 UTC by Xisco Faulí
Modified: 2023-08-14 10:55 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
sampleTextLength (440 bytes, image/svg+xml)
2015-10-28 18:46 UTC, Xisco Faulí
Details
how it looks in chrome (6.80 KB, image/png)
2015-10-28 18:47 UTC, Xisco Faulí
Details
printscreen (123.11 KB, image/png)
2015-10-29 14:16 UTC, raal
Details
sampleTextLength.svg in LO Draw 6.1 beta 2 (19.72 KB, image/png)
2018-06-19 14:39 UTC, Roman Kuznetsov
Details
LibreOffice 7.2 vs Firefox (41.91 KB, image/png)
2021-06-21 09:11 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
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.