Bug 151103 - SVG: text-anchor and tspan don't play well
Summary: SVG: text-anchor and tspan don't play well
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
6.3.6.2 release
Hardware: All All
: medium normal
Assignee: Xisco Faulí
URL:
Whiteboard: target:24.2.0 target:7.6.1
Keywords: filter:svg
: 88365 158931 (view as bug list)
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2022-09-21 11:14 UTC by Xisco Faulí
Modified: 2024-01-02 11:26 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
sample file (622 bytes, image/svg+xml)
2022-09-21 11:14 UTC, Xisco Faulí
Details
Comparison Firefox and LibreOffice 7.5 Master (85.42 KB, image/png)
2022-09-21 11:15 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xisco Faulí 2022-09-21 11:14:51 UTC
Created attachment 182597 [details]
sample file

Steps to reproduce:
1. Open attached document

-> See the difference between Firefox and LibreOffice

reproduced in

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 90861cc6f815b3f34edb88d47afed0d1099e72e7
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 1 Xisco Faulí 2022-09-21 11:15:12 UTC
Created attachment 182598 [details]
Comparison Firefox and LibreOffice 7.5 Master
Comment 2 Rafael Lima 2022-09-21 12:46:18 UTC
Repro with

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 35702fd6781542f5eefbd3710304ab9a25ac61fe
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded

Also repro with

Version: 7.2.7.2 / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL

In Inkscape the SVG file opens correctly, as well as in Firefox. However LO Draw fails to correctly import the text anchoring in this file.
Comment 3 Stéphane Guillou (stragu) 2022-11-23 11:15:26 UTC
Text already shifted as described in:

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
Comment 4 Xisco Faulí 2023-08-03 12:41:22 UTC
*** Bug 88365 has been marked as a duplicate of this bug. ***
Comment 5 Commit Notification 2023-08-03 16:37:12 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/2795a230464aea3a792e67b5625fce2a0c01d547

tdf#151103: Use the whole text line to calculate the align position

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 6 Commit Notification 2023-08-10 14:53:07 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/ad3d6732dc8905b1660fa25147a00024b0ac0cd0

related: tdf#151103: simplify code

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 7 Commit Notification 2023-08-15 17:02:14 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/00871b79164d7dfb50820cdcae05b9050639a014

tdf#151103: Use the whole text line to calculate the align position

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.
Comment 8 Xisco Faulí 2024-01-02 11:26:58 UTC
*** Bug 158931 has been marked as a duplicate of this bug. ***