Paths should be combined after text to path (at least for export options, e.g. pdf convert text to path)

Migrated from https://bugs.launchpad.net/inkscape/+bug/1773077

Summary:

Normally the stroke of the text will not overlap other text in the same tspan. Export to pdf with text to paths enabled will not preserve this since each letter is separated.

Steps to reproduce:

  • open Inkscape
  • Create some text (e.g. "Friend")
  • Give the text negative spacing so that they overlap a bit
  • Set a stroke
  • Duplicate and Convert the duplicate text to path

What happened?

  • Since each letter is a separate path, they will overlap each other

What should have happened?

  • Text that are part of the same text chunk should be combined together.
  • Preferably there would be some option or separate command to preserve current behaviour, but for export to pdf, and even a lot of uses of text to path, this behaviour is probably preferred.
  • Original issue suggests union, but that doesn't preserve appearance if you use fill-rule:even-odd;

Sample attachments: Note, I added some text with a different fill/stroke to show that some overlap does happen in the text is broken into separate "text chunks".

inkscape-text-to-path-test.svg

Screenshot from launchpad (shows the issue more clearly than my example file):

bug

Version Info:

  • Inkscape 1.1-dev (0d2e79aadc, 2020-08-18) Linux Mint 20
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information