Bug 158298 - Shadow of wrapped lines of text is shifted in SVG export
Summary: Shadow of wrapped lines of text is shifted in SVG export
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
7.5.0.0 alpha0+
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:svg, regression
Depends on:
Blocks: SVG-Save Shape-Textbox
  Show dependency treegraph
 
Reported: 2023-11-21 13:40 UTC by Stéphane Guillou (stragu)
Modified: 2023-11-21 14:39 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample ODP (18.88 KB, application/vnd.oasis.opendocument.presentation)
2023-11-21 13:40 UTC, Stéphane Guillou (stragu)
Details
comparison screenshots: on canvas | 7.4 export | 7.5 disappeared | 7.5 shifted (105.60 KB, image/png)
2023-11-21 14:39 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Guillou (stragu) 2023-11-21 13:40:27 UTC
Created attachment 190937 [details]
sample ODP

Text shadow in a text box or shape is shifted for automatically wrapped lines when exporting to SVG.

Steps:
1. Open attached ODP
2. Export to SVG

Alternatively: soffice --headless --convert-to svg file.odp

Result: extra wrapped lines of text have shadow shifted to the right, in increments.
PNG, JPG and PDF exports are not affected.

Bibisected the issue with the linux-64-7.5 repo to two stages:

(1) Expected text shadow to no text shadow in build commit [24bd024cb85b7d5ab151e8dec8be23afdbaf51c2] which points to:

commit e735ad1c57cddaf17d6ffc0cf15b5e14fa63c4ad
author	Armin Le Grand (allotropia)	Tue Sep 13 13:42:54 2022 +0200
committer Armin Le Grand Wed Sep 14 09:54:18 2022 +0200
Rework of ShadowPrimitive2D
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139858

(2) Text shadow was later restored, but the second line is now shifted, with build commit [02c79fe4069277be3f232c77470b16e33a8982ac] which points to:

commit bd42cd1a325cd53db9fca0865f851bcd6e09ccc6
author	Caolán McNamara 	Thu Mar 02 15:50:52 2023 +0000
committer	Christian Lohmaier	Thu Mar 09 12:35:15 2023 +0000
tdf#153672 Use RelativeMapMode so text in gdis are scaled/offset correctly
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148102

Armin and Caolán, can you please have a look?
Maybe not exactly a regression, as the shadow was bitmap before and is now vector text, but would be perceived as a regression to users.
Comment 1 Stéphane Guillou (stragu) 2023-11-21 14:39:57 UTC
Created attachment 190940 [details]
comparison screenshots: on canvas | 7.4 export | 7.5 disappeared | 7.5 shifted